aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorDmitry Mikhirev2014-12-18 14:55:55 +0300
committerDmitry Mikhirev2014-12-18 14:59:57 +0300
commit2552a55b8082ebf502cc4dd3b406258ee0977fea (patch)
tree81b6ba3da57feba8b198dcb6bc7a19b29d01e69a /README.md
parenta60a739b3fe1585861a2dd5cf75e77a05e8f380d (diff)
downloadmake_pcre-2552a55b8082ebf502cc4dd3b406258ee0977fea.tar.gz
make_pcre-2552a55b8082ebf502cc4dd3b406258ee0977fea.tar.bz2
make_pcre-2552a55b8082ebf502cc4dd3b406258ee0977fea.tar.xz
make_pcre-2552a55b8082ebf502cc4dd3b406258ee0977fea.zip
expand replacement string just before substitution, after vars set
Diffstat (limited to 'README.md')
-rw-r--r--README.md14
1 files changed, 8 insertions, 6 deletions
diff --git a/README.md b/README.md
index 8b2bcae..77359e2 100644
--- a/README.md
+++ b/README.md
@@ -51,9 +51,9 @@ pattern instead substring as first argument:
$(pcre_find PATTERN,IN)
$(m PATTERN,IN)
-It searches IN for matching PATTERN. If it occurs, the matched substring is
-returned; otherwise returned string is empty. Note that normally PATTERN is
-not expanded, but IN is expanded before search.
+It searches *IN* for matching *PATTERN*. If it occurs, the matched substring is
+returned; otherwise returned string is empty. Note that normally *PATTERN* is
+not expanded, but *IN* is expanded before search.
### `pcre_subst` function ###
@@ -63,9 +63,11 @@ instead substring as first argument:
$(pcre_subst PATTERN,REPLACEMENT,TEXT)
$(s PATTERN,REPLACEMENT,TEXT)
-It searches TEXT for matching PATTERN. If it occurs, the matched substring is
-replaced with REPLACEMENT, and the resulting string is returned. If pattern
-does not match, TEXT is returned unchanged.
+It searches *TEXT* for matching *PATTERN*. If it occurs, the matched substring
+is replaced with *REPLACEMENT*, and the resulting string is returned. If pattern
+does not match, *TEXT* is returned unchanged. *PATTERN* is not expanded by default,
+*TEXT* is expanded before search, and *REPLACEMENT* string is expanded just before
+substitution.
Capturing strings
-----------------