Additions:
=====PHP Regex Pages=====
DevPhp>>====Index====
DevPhp>>====Index====
Deletions:
====Index====
----
[[CategoryPhp]]
Additions:
To simply match everything between to fixed strings. The core: ""<tt><b>(.*?)</b></tt>"". For some reason, I can't commit this to memory:
Deletions:
Additions:
=====PHP Regex Pages=====>>
====Index====
>>
====Ungreedy Match====
To simply match everything between to fixed strings. For some reason, I can't commit this to memory:
%%(php)
# DELIMITER START_FLAG (.*?) END_FLAG DELIMITER
$regex_p = '~#####(.*?)#####~';
$regex_p = sprintf('~%s(%s)%s~', preg_quote('<body>'), '.*?', preg_quote('</body>'));
%%
See also Paste20100418
====Index====
>>
====Ungreedy Match====
To simply match everything between to fixed strings. For some reason, I can't commit this to memory:
%%(php)
# DELIMITER START_FLAG (.*?) END_FLAG DELIMITER
$regex_p = '~#####(.*?)#####~';
$regex_p = sprintf('~%s(%s)%s~', preg_quote('<body>'), '.*?', preg_quote('</body>'));
%%
See also Paste20100418
Deletions:
Additions:
[[http://www.php.net/manual/en/reference.pcre.pattern.syntax.php Pattern Syntax]] (php.net)
Deletions:
Additions:
====References====
[[http://www.php.net/manual/en/reference.pcre.pattern.syntax.php Pattern Syntax]] php.net
[[http://www.php.net/manual/en/reference.pcre.pattern.syntax.php Pattern Syntax]] php.net