diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2016-09-26 06:53:30 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2016-09-26 06:53:30 -0700 |
commit | 26de3caa3bfd35c0cba8f6bc043cdfad833957cc (patch) | |
tree | b0ea6a0ba625a23a5a2b5138ca71c35bea4c3da1 | |
parent | 3fa79c9a6cbfee09b81081607d13fbf6001242da (diff) | |
download | txr-26de3caa3bfd35c0cba8f6bc043cdfad833957cc.tar.gz txr-26de3caa3bfd35c0cba8f6bc043cdfad833957cc.tar.bz2 txr-26de3caa3bfd35c0cba8f6bc043cdfad833957cc.zip |
doc: new regsub example.
* txr.1: Left-anchored match in regsub with r^.
-rw-r--r-- | txr.1 | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -32101,6 +32101,9 @@ which indicates that no replacement is to take place. ;; Replace Hello with Goodbye: (regsub #/Hello/ "Goodbye" "Hello world!") -> "Goodbye world!" + + ;; Left-anchored replacement with r^ function: + (regsub (op r^ #/H/) "J" "Hello, hello!") -> "Jello, hello!" .cble .coNP Function @ regexp |