Re: how does this regular expression works

From: Date: Thu, 14 Jul 2011 10:29:01 +0000
Subject: Re: how does this regular expression works
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-47925@lists.php.net to get a copy of this message
On 13 July 2011 13:42, who.cat <win.acc@gmail.com> wrote: > <head[^>]*>(.*?)</head> <head[^>]*>(.*?)</head> Options: case insensitive; ^ and $ match at line breaks Match the characters “<head” literally «<head» Match any character that is NOT a “>” «[^>]*» Between zero and unlimited times, as many times as possible, giving back as needed (greedy) «*» Match the character “>” literally «>» Match the regular expression below and capture its match into backreference number 1 «(.*?)» Match any single character that is not a line break character «.*?» Between zero and unlimited times, as few times as possible, expanding as needed (lazy) «*?» Match the characters “</head>” literally «</head>» Created with RegexBuddy -- Richard Quadling Twitter : EE : Zend : PHPDoc @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY : bit.ly/lFnVea

« previous php.db (#47925) next »