Re: Regex to wrap <a href=""> tag around a <p> tag

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Shaun wrote:

Hi M,

Thanks for your help, the code works fine except if there is a line break in the html, for example
this works

<p>test</p>

But this doesnt

<p>test
</p>

Any ideas?


See the last user contributed note from *csaba at alum dot mit dot edu *at http://us3.php.net/manual/en/reference.pcre.pattern.modifiers.php, particularly the last paragraph. He gives a very good explanation of pattern modifiers that answers your question.


kgt

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux