Re: [PHP-DB] how does this regular expression works

2011-07-14 Thread Richard Quadling
On 13 July 2011 13:42, who.cat wrote: > ]*>(.*?) ]*>(.*?) Options: case insensitive; ^ and $ match at line breaks Match the characters “” «[^>]*» Between zero and unlimited times, as many times as possible, giving back as needed (greedy) «*» Match the character “>” literally «>» Match the

Re: [PHP-DB] how does this regular expression works

2011-07-14 Thread Richard Quadling
On 13 July 2011 14:04, Shahriyar Imanov wrote: > \(?P.*?)\<\/head\> (?P.*?) Options: case insensitive; ^ and $ match at line breaks Match the characters “” literally «>» Match the regular expression below and capture its match into backreference with name “head_tag_innerHTML” «(?P.*?)» Mat

RE: [PHP-DB] how does this regular expression works

2011-07-13 Thread Shahriyar Imanov
l.com [mailto:who@gmail.com] On Behalf Of who.cat Sent: 13 iyul 2011 15:43 To: php-db@lists.php.net Subject: [PHP-DB] how does this regular expression works Reading some code from the web spider,got the such a expression : preg_match("@]*>(.*?)<\/head>@si",$file, $regs); It&

[PHP-DB] how does this regular expression works

2011-07-13 Thread who.cat
Reading some code from the web spider,got the such a expression : preg_match("@]*>(.*?)<\/head>@si",$file, $regs); It's about get the head content of a website,i wanna know the match detail .Could someone give some tips , thanks in advance . All you best What we are strugg