note 116941 added to regexp.reference.subpatterns

From: Date: Wed, 25 Mar 2015 03:46:07 +0000
Subject: note 116941 added to regexp.reference.subpatterns
Groups: php.notes 
Request: Send a blank email to php-notes+get-202027@lists.php.net to get a copy of this message
(?:(?!string).) ?: makes a subpattern ?! is a negative look-ahead. Putting negative look-ahead before the dot causes regex engine to first find any occurrence of the negative look-ahead string, and only then, if the negative look-ahead string is not present, should an arbitrary character (due to the dot) match. ---- Server IP: 72.52.91.14 Probable Submitter: 74.96.181.211 ---- Manual Page -- http://php.net/manual/en/regexp.reference.subpatterns.php Edit -- https://master.php.net/note/edit/116941 Del: integrated -- https://master.php.net/note/delete/116941/integrated Del: useless -- https://master.php.net/note/delete/116941/useless Del: bad code -- https://master.php.net/note/delete/116941/bad+code Del: spam -- https://master.php.net/note/delete/116941/spam Del: non-english -- https://master.php.net/note/delete/116941/non-english Del: in docs -- https://master.php.net/note/delete/116941/in+docs Del: other reasons-- https://master.php.net/note/delete/116941 Reject -- https://master.php.net/note/reject/116941 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#202027) next »