summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2017-09-14 19:52:39 -0700
committerKaz Kylheku <kaz@kylheku.com>2017-09-14 19:52:39 -0700
commit8e352bfdff6bf99e06c500a9bcf06cbd3e953110 (patch)
treebc7703278915eec96da1a74ef94c357284bb1ede
parentb799214ad51a1a782593a06e76d9ee656c12d008 (diff)
downloadtxr-8e352bfdff6bf99e06c500a9bcf06cbd3e953110.tar.gz
txr-8e352bfdff6bf99e06c500a9bcf06cbd3e953110.tar.bz2
txr-8e352bfdff6bf99e06c500a9bcf06cbd3e953110.zip
doc: improve example under regsub
* txr.1: instead of (op r^ ...) we can use (fr^ ...).
-rw-r--r--txr.12
1 files changed, 1 insertions, 1 deletions
diff --git a/txr.1 b/txr.1
index 5bc526be..98e9d3d2 100644
--- a/txr.1
+++ b/txr.1
@@ -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