diff options
author | Jeremy Harris <jgh146exb@wizmail.org> | 2020-05-06 19:55:17 +0100 |
---|---|---|
committer | Jeremy Harris <jgh146exb@wizmail.org> | 2020-05-06 19:55:17 +0100 |
commit | 43ba45ce62100bc1dbc9b04b5d869f59026783f5 (patch) | |
tree | f2f6692465692c0f13adef405af02910eea7e699 /doc | |
parent | 2a53e2464bfa1a831f544ed44d3690e5c22259a5 (diff) |
Numeric variable returns
Diffstat (limited to 'doc')
-rw-r--r-- | doc/doc-docbook/spec.xfpt | 6 | ||||
-rw-r--r-- | doc/doc-txt/NewStuff | 5 |
2 files changed, 10 insertions, 1 deletions
diff --git a/doc/doc-docbook/spec.xfpt b/doc/doc-docbook/spec.xfpt index 33e07db0a..c55dff0af 100644 --- a/doc/doc-docbook/spec.xfpt +++ b/doc/doc-docbook/spec.xfpt @@ -8545,7 +8545,7 @@ In today's Internet, the use of domain literals is controversial; see the &%allow_domain_literals%& main option. .new -The value for a match will be the &`@[]`& string. +The value for a match will be the string &`@[]`&. .wen @@ -8616,6 +8616,8 @@ list item such as &`*key.ex`& matches &'donkey.ex'& as well as .new The value for a match will be the list element string (starting with the asterisk). +Additionally, &$0$& will be set to the matched string +and &$1$& to the variable portion which the asterisk matched. .wen .next @@ -8637,6 +8639,8 @@ expression by expansion, of course). .new The value for a match will be the list element string (starting with the circumflex). +Additionally, &$0$& will be set to the string matching the regular expression, +and &$1$& (onwards) to any submatches identified by parentheses. .wen diff --git a/doc/doc-txt/NewStuff b/doc/doc-txt/NewStuff index 493244ff1..cf142afb6 100644 --- a/doc/doc-txt/NewStuff +++ b/doc/doc-txt/NewStuff @@ -63,6 +63,11 @@ Version 4.94 19. bounce_message_file and warn_message_file are now expanded before use. +20. $domain_data and $localpart_data are now set by all list-match successes. + Previously only list items that performed lookups did so. + Also, matching list items that are tail-match or RE-match now set the + numeric variables $0 (etc) in the same way os other RE matches. + Version 4.93 |