From e6f7aee8c27d87047857b9daf0075e90062b4ac2 Mon Sep 17 00:00:00 2001 From: Dmitry Mikhirev Date: Sun, 15 Feb 2015 15:10:15 +0300 Subject: added php-like options `A' and `D' --- README.md | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index 9b3e3a2..6fc02d9 100644 --- a/README.md +++ b/README.md @@ -104,6 +104,10 @@ of one ore more characters, each of which enables some option: The following options are implemented: +- `A` makes expression anchored, i. e. constrained to match only at the first + matching point in the string. The same as in PHP; +- `D` forces a `$` metacharacter to match only before a newline at the end + of the string, not before any other newlines. The same as in PHP; - `E` enables expansion of pattern before compilation. Note that you will need to use `$$` instead `$` for matching end of line in this case; - `g` enables global search, like in Perl. `pcre_find` will return space -- cgit v1.2.1