svn: /phpdoc/en/trunk/reference/pcre/ pattern.syntax.xml

From: Date: Fri, 06 Nov 2009 15:50:04 +0000
Subject: svn: /phpdoc/en/trunk/reference/pcre/ pattern.syntax.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-5282@lists.php.net to get a copy of this message
bjori Fri, 06 Nov 2009 15:50:04 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=290376 Log: Put emphasis on lookahead and lookbehind Changed paths: U phpdoc/en/trunk/reference/pcre/pattern.syntax.xml Modified: phpdoc/en/trunk/reference/pcre/pattern.syntax.xml =================================================================== --- phpdoc/en/trunk/reference/pcre/pattern.syntax.xml 2009-11-06 15:00:53 UTC (rev 290375) +++ phpdoc/en/trunk/reference/pcre/pattern.syntax.xml 2009-11-06 15:50:04 UTC (rev 290376) @@ -1242,13 +1242,13 @@ consume any characters. The simple assertions coded as \b, \B, \A, \Z, \z, ^ and $ are described above. More complicated assertions are coded as subpatterns. There are two - kinds: those that look ahead of the current position in the - subject string, and those that look behind it. + kinds: those that <emphasis>look ahead</emphasis> of the current position in the + subject string, and those that <emphasis>look behind</emphasis> it. </para> <para> An assertion subpattern is matched in the normal way, except that it does not cause the current matching position to be - changed. Lookahead assertions start with (?= for positive + changed. <emphasis>Lookahead</emphasis> assertions start with (?= for positive assertions and (?! for negative assertions. For example, <literal>\w+(?=;)</literal> @@ -1270,7 +1270,7 @@ assertion is needed to achieve this effect. </para> <para> - Lookbehind assertions start with (?&lt;= for positive assertions + <emphasis>Lookbehind</emphasis> assertions start with (?&lt;= for positive assertions and (?&lt;! for negative assertions. For example, <literal>(?&lt;!foo)bar</literal>

« previous php.doc.cvs (#5282) next »