diff options
author | Henrik Nord <[email protected]> | 2012-10-01 10:02:39 +0200 |
---|---|---|
committer | Henrik Nord <[email protected]> | 2012-10-01 10:05:45 +0200 |
commit | c8c2571ad89c466518f48bfbf32f997f37a47d31 (patch) | |
tree | 5d435ce3e96efa44748f9207cc272bce9bf8ba70 /lib/stdlib/doc/src | |
parent | a4a8f703c4ef1fa0f8ab9f597afa3a8e3e0e1f28 (diff) | |
parent | 264e667b86381528131c45c9b6e8f54ad168c73f (diff) | |
download | otp-c8c2571ad89c466518f48bfbf32f997f37a47d31.tar.gz otp-c8c2571ad89c466518f48bfbf32f997f37a47d31.tar.bz2 otp-c8c2571ad89c466518f48bfbf32f997f37a47d31.zip |
Merge branch 'vs/re_back_reference'
* vs/re_back_reference:
extend re back reference syntax with \g escape sequence
OTP-10455
Diffstat (limited to 'lib/stdlib/doc/src')
-rw-r--r-- | lib/stdlib/doc/src/re.xml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/stdlib/doc/src/re.xml b/lib/stdlib/doc/src/re.xml index c6f45fb1e1..2211bfb925 100644 --- a/lib/stdlib/doc/src/re.xml +++ b/lib/stdlib/doc/src/re.xml @@ -490,8 +490,8 @@ This option makes it possible to include comments inside complicated patterns. N <p>The replacement string can contain the special character <c>&</c>, which inserts the whole matching expression in the - result, and the special sequence <c>\</c>N (where N is an - integer > 0), resulting in the subexpression number N will be + result, and the special sequence <c>\</c>N (where N is an integer > 0), + <c>\g</c>N or <c>\g{</c>N<c>}</c> resulting in the subexpression number N will be inserted in the result. If no subexpression with that number is generated by the regular expression, nothing is inserted.</p> <p>To insert an <c>&</c> or <c>\</c> in the result, precede it |