Couldn't understand A (PCRE_ANCHORED)
Posted: Sun May 20, 2007 6:02 am
I couldn't understand the following from http://in.php.net/manual/en/reference.p ... ifiers.php
Can anybody provide some examples ??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.