Page 1 of 1

Couldn't understand A (PCRE_ANCHORED)

Posted: Sun May 20, 2007 6:02 am
by nwp
I couldn't understand the following from http://in.php.net/manual/en/reference.p ... ifiers.php
http://in.php.net/manual/en/reference.pcre.pattern.modifiers.php wrote:A (PCRE_ANCHORED)
If this modifier is set, the pattern is forced to be "anchored", that is, it is constrained to match only at the start of the string which is being searched (the "subject string"). This effect can also be achieved by appropriate constructs in the pattern itself, which is the only way to do it in Perl.
Can anybody provide some examples ??

Posted: Sun May 20, 2007 7:05 am
by feyd
There are lots of examples posted on the forums here. Most often, they involve the "^" character (not inside a character class)

Posted: Sun May 20, 2007 7:10 am
by nwp
I really didn't find one.

Posted: Sun May 20, 2007 7:24 am
by feyd
Keep looking. You have examples in your own threads.