diff options
author | Dmitry Mikhirev | 2014-12-18 14:55:55 +0300 |
---|---|---|
committer | Dmitry Mikhirev | 2014-12-18 14:59:57 +0300 |
commit | 2552a55b8082ebf502cc4dd3b406258ee0977fea (patch) | |
tree | 81b6ba3da57feba8b198dcb6bc7a19b29d01e69a /README.md | |
parent | a60a739b3fe1585861a2dd5cf75e77a05e8f380d (diff) | |
download | make_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.md | 14 |
1 files changed, 8 insertions, 6 deletions
@@ -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 ----------------- |