diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2017-09-14 19:52:39 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2017-09-14 19:52:39 -0700 |
commit | 5df0c3e6b88e31b4e41041ce654f0ee8f402874e (patch) | |
tree | bc7703278915eec96da1a74ef94c357284bb1ede | |
parent | 1cf34a23a97c5082043e740b6a11c810287f72c4 (diff) | |
download | txr-5df0c3e6b88e31b4e41041ce654f0ee8f402874e.tar.gz txr-5df0c3e6b88e31b4e41041ce654f0ee8f402874e.tar.bz2 txr-5df0c3e6b88e31b4e41041ce654f0ee8f402874e.zip |
doc: improve example under regsub
* txr.1: instead of (op r^ ...) we can use (fr^ ...).
-rw-r--r-- | txr.1 | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -38079,7 +38079,7 @@ which indicates that no replacement is to take place. (regsub #/Hello/ "Goodbye" "Hello world!") -> "Goodbye world!" ;; Left-anchored replacement with r^ function: - (regsub (op r^ #/H/) "J" "Hello, hello!") -> "Jello, hello!" + (regsub (fr^ #/H/) "J" "Hello, hello!") -> "Jello, hello!" .cble .coNP Function @ regexp |