diff options
author | Dmitry Mikhirev | 2014-11-15 11:39:47 +0300 |
---|---|---|
committer | Dmitry Mikhirev | 2014-11-15 11:39:47 +0300 |
commit | b5df366f20e0e734686fb2bf01adff065e0d70da (patch) | |
tree | c78fd744ec08caa569724e9fe3bb179bf2c40dd8 | |
parent | 3d42e48cd375109871d1867fdfce1ce6855da17d (diff) | |
download | make_pcre-b5df366f20e0e734686fb2bf01adff065e0d70da.tar.gz make_pcre-b5df366f20e0e734686fb2bf01adff065e0d70da.tar.bz2 make_pcre-b5df366f20e0e734686fb2bf01adff065e0d70da.tar.xz make_pcre-b5df366f20e0e734686fb2bf01adff065e0d70da.zip |
added `i' option
-rw-r--r-- | README.md | 5 | ||||
-rw-r--r-- | pcre.c | 3 |
2 files changed, 6 insertions, 2 deletions
@@ -64,13 +64,14 @@ Options `pcre_find` can take optional third argument consisting of one ore more characters, each of which enables some option: - $(pcre_find PATTERN,IN,EmsuUxX8) - $(m PATTERN,IN,EmsuUxX8) + $(pcre_find PATTERN,IN,EimsuUxX8) + $(m PATTERN,IN,EimsuUxX8) The following options are implemented: - `E` enables expansion of pattern before compilation. Note that you will need to use `$$` instead `$` for matching end of line in this case; +- `i` makes search case insensitive. The same as in Perl; - `m` makes regexp treating string as multi-line, i. e. `^` and `$` will match immediately after or immediately before internal newlines. The same as in Perl; @@ -48,6 +48,9 @@ char *match(const char *name, int argc, char **argv) case 'E': pat = gmk_expand(argv[0]); break; + case 'i': + co |= PCRE_CASELESS; + break; case 'm': co |= PCRE_MULTILINE; break; |