From e3b38f64d759c62a6502bb0a9c2bc9773cbfceca Mon Sep 17 00:00:00 2001 From: John Kerl Date: Sun, 26 Aug 2018 13:52:43 -0400 Subject: [PATCH] regex-extract iterate (HTML docs) --- doc/manpage.html | 30 +++++++++++++++++------------- doc/manpage.txt | 30 +++++++++++++++++------------- doc/reference-dsl.html | 11 +++++++++++ doc/reference.html | 20 ++++++++++---------- 4 files changed, 55 insertions(+), 36 deletions(-) diff --git a/doc/manpage.html b/doc/manpage.html index d90491fbb..7081b5035 100644 --- a/doc/manpage.html +++ b/doc/manpage.html @@ -327,18 +327,18 @@ OPTIONS FUNCTION LIST + + - - * / // .+ .+ .- .- .* ./ .// % ** | ^ & ~ << >> bitcount == != =~ !=~ - > >= < <= && || ^^ ! ? : . gsub strlen sub ssub substr tolower toupper abs - acos acosh asin asinh atan atan2 atanh cbrt ceil cos cosh erf erfc exp expm1 - floor invqnorm log log10 log1p logifit madd max mexp min mmul msub pow qnorm - round roundm sgn sin sinh sqrt tan tanh urand urand32 urandint dhms2fsec - dhms2sec fsec2dhms fsec2hms gmt2sec localtime2sec hms2fsec hms2sec sec2dhms - sec2gmt sec2gmt sec2gmtdate sec2localtime sec2localtime sec2localdate sec2hms - strftime strftime_local strptime strptime_local systime is_absent is_bool - is_boolean is_empty is_empty_map is_float is_int is_map is_nonempty_map - is_not_empty is_not_map is_not_null is_null is_numeric is_present is_string - asserting_absent asserting_bool asserting_boolean asserting_empty - asserting_empty_map asserting_float asserting_int asserting_map - asserting_nonempty_map asserting_not_empty asserting_not_map + > >= < <= && || ^^ ! ? : . gsub regex_extract strlen sub ssub substr tolower + toupper abs acos acosh asin asinh atan atan2 atanh cbrt ceil cos cosh erf erfc + exp expm1 floor invqnorm log log10 log1p logifit madd max mexp min mmul msub + pow qnorm round roundm sgn sin sinh sqrt tan tanh urand urand32 urandint + dhms2fsec dhms2sec fsec2dhms fsec2hms gmt2sec localtime2sec hms2fsec hms2sec + sec2dhms sec2gmt sec2gmt sec2gmtdate sec2localtime sec2localtime sec2localdate + sec2hms strftime strftime_local strptime strptime_local systime is_absent + is_bool is_boolean is_empty is_empty_map is_float is_int is_map + is_nonempty_map is_not_empty is_not_map is_not_null is_null is_numeric + is_present is_string asserting_absent asserting_bool asserting_boolean + asserting_empty asserting_empty_map asserting_float asserting_int + asserting_map asserting_nonempty_map asserting_not_empty asserting_not_map asserting_not_null asserting_null asserting_numeric asserting_present asserting_string boolean float fmtnum hexfmt int string typeof depth haskey joink joinkv joinv leafcount length mapdiff mapexcept mapselect mapsum splitkv @@ -1579,6 +1579,10 @@ FUNCTIONS FOR FILTER/PUT (class=string #args=3): Example: '$name=gsub($name, "old", "new")' (replace all). + regex_extract + (class=string #args=2): Example: '$name=regex_extract($name, "[A-Z]{3}[0-9]{2}")' + . + strlen (class=string #args=1): String length. @@ -2371,7 +2375,7 @@ SEE ALSO - 2018-04-29 MILLER(1) + 2018-08-26 MILLER(1)

diff --git a/doc/manpage.txt b/doc/manpage.txt index e8add8cea..d324e9293 100644 --- a/doc/manpage.txt +++ b/doc/manpage.txt @@ -133,18 +133,18 @@ OPTIONS FUNCTION LIST + + - - * / // .+ .+ .- .- .* ./ .// % ** | ^ & ~ << >> bitcount == != =~ !=~ - > >= < <= && || ^^ ! ? : . gsub strlen sub ssub substr tolower toupper abs - acos acosh asin asinh atan atan2 atanh cbrt ceil cos cosh erf erfc exp expm1 - floor invqnorm log log10 log1p logifit madd max mexp min mmul msub pow qnorm - round roundm sgn sin sinh sqrt tan tanh urand urand32 urandint dhms2fsec - dhms2sec fsec2dhms fsec2hms gmt2sec localtime2sec hms2fsec hms2sec sec2dhms - sec2gmt sec2gmt sec2gmtdate sec2localtime sec2localtime sec2localdate sec2hms - strftime strftime_local strptime strptime_local systime is_absent is_bool - is_boolean is_empty is_empty_map is_float is_int is_map is_nonempty_map - is_not_empty is_not_map is_not_null is_null is_numeric is_present is_string - asserting_absent asserting_bool asserting_boolean asserting_empty - asserting_empty_map asserting_float asserting_int asserting_map - asserting_nonempty_map asserting_not_empty asserting_not_map + > >= < <= && || ^^ ! ? : . gsub regex_extract strlen sub ssub substr tolower + toupper abs acos acosh asin asinh atan atan2 atanh cbrt ceil cos cosh erf erfc + exp expm1 floor invqnorm log log10 log1p logifit madd max mexp min mmul msub + pow qnorm round roundm sgn sin sinh sqrt tan tanh urand urand32 urandint + dhms2fsec dhms2sec fsec2dhms fsec2hms gmt2sec localtime2sec hms2fsec hms2sec + sec2dhms sec2gmt sec2gmt sec2gmtdate sec2localtime sec2localtime sec2localdate + sec2hms strftime strftime_local strptime strptime_local systime is_absent + is_bool is_boolean is_empty is_empty_map is_float is_int is_map + is_nonempty_map is_not_empty is_not_map is_not_null is_null is_numeric + is_present is_string asserting_absent asserting_bool asserting_boolean + asserting_empty asserting_empty_map asserting_float asserting_int + asserting_map asserting_nonempty_map asserting_not_empty asserting_not_map asserting_not_null asserting_null asserting_numeric asserting_present asserting_string boolean float fmtnum hexfmt int string typeof depth haskey joink joinkv joinv leafcount length mapdiff mapexcept mapselect mapsum splitkv @@ -1385,6 +1385,10 @@ FUNCTIONS FOR FILTER/PUT (class=string #args=3): Example: '$name=gsub($name, "old", "new")' (replace all). + regex_extract + (class=string #args=2): Example: '$name=regex_extract($name, "[A-Z]{3}[0-9]{2}")' + . + strlen (class=string #args=1): String length. @@ -2177,4 +2181,4 @@ SEE ALSO - 2018-04-29 MILLER(1) + 2018-08-26 MILLER(1) diff --git a/doc/reference-dsl.html b/doc/reference-dsl.html index 1184aa6cf..1eb0d9360 100644 --- a/doc/reference-dsl.html +++ b/doc/reference-dsl.html @@ -4804,6 +4804,17 @@ qnorm (class=math #args=1): Normal cumulative distribution function. +

regex_extract

+ +

+

+
+regex_extract (class=string #args=2): Example: '$name=regex_extract($name, "[A-Z]{3}[0-9]{2}")'
+.
+
+
+ +

round

diff --git a/doc/reference.html b/doc/reference.html index 2a8a2cc36..b808f8386 100644 --- a/doc/reference.html +++ b/doc/reference.html @@ -1447,16 +1447,16 @@ Verbs: Functions for the filter and put verbs: + + - - * / // .+ .+ .- .- .* ./ .// % ** | ^ & ~ << >> bitcount == != =~ - !=~ > >= < <= && || ^^ ! ? : . gsub strlen sub ssub substr tolower toupper - abs acos acosh asin asinh atan atan2 atanh cbrt ceil cos cosh erf erfc exp - expm1 floor invqnorm log log10 log1p logifit madd max mexp min mmul msub pow - qnorm round roundm sgn sin sinh sqrt tan tanh urand urand32 urandint - dhms2fsec dhms2sec fsec2dhms fsec2hms gmt2sec localtime2sec hms2fsec hms2sec - sec2dhms sec2gmt sec2gmt sec2gmtdate sec2localtime sec2localtime - sec2localdate sec2hms strftime strftime_local strptime strptime_local - systime is_absent is_bool is_boolean is_empty is_empty_map is_float is_int - is_map is_nonempty_map is_not_empty is_not_map is_not_null is_null - is_numeric is_present is_string asserting_absent asserting_bool + !=~ > >= < <= && || ^^ ! ? : . gsub regex_extract strlen sub ssub substr + tolower toupper abs acos acosh asin asinh atan atan2 atanh cbrt ceil cos + cosh erf erfc exp expm1 floor invqnorm log log10 log1p logifit madd max mexp + min mmul msub pow qnorm round roundm sgn sin sinh sqrt tan tanh urand + urand32 urandint dhms2fsec dhms2sec fsec2dhms fsec2hms gmt2sec localtime2sec + hms2fsec hms2sec sec2dhms sec2gmt sec2gmt sec2gmtdate sec2localtime + sec2localtime sec2localdate sec2hms strftime strftime_local strptime + strptime_local systime is_absent is_bool is_boolean is_empty is_empty_map + is_float is_int is_map is_nonempty_map is_not_empty is_not_map is_not_null + is_null is_numeric is_present is_string asserting_absent asserting_bool asserting_boolean asserting_empty asserting_empty_map asserting_float asserting_int asserting_map asserting_nonempty_map asserting_not_empty asserting_not_map asserting_not_null asserting_null asserting_numeric