On Mon, Jun 9, 2008 at 8:07 PM, Graham Anderson [EMAIL PROTECTED] wrote:
Hi
How can I convert the regular expression:
p\s+style=padding-left:\s+(\d+)px;(.*?)/p
into a pattern that PHP will accept?
[snip!]
Change this:
$pattern='p\s+style=padding-left:\s+(\d+)px;(.*?)/p';
To this:
Hi
How can I convert the regular expression:p\s+style=padding-left:
\s+(\d+)px;(.*?)/p
into a pattern that PHP will accept?
I am getting the error:
Warning: preg_replace() [function.preg-replace]: Unknown modifier '('
in
I needed to add the ~ character as a delimiter. So, the below now works
$pattern='~p\s+style=padding-left:\s+(\d+)px;(.*?)/p~';
G
Hi
How can I convert the regular expression:p\s+style=padding-
left:\s+(\d+)px;(.*?)/p
into a pattern that PHP will accept?
I am getting the error:
Warning:
3 matches
Mail list logo