ROWS: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
asdfsedf asdfja asdf asdf a sdf asdf aasdf ds asdfsdafsad <pre>aa sdfasd asdfasd asdfa asdfsad</pre>
Execution Time(sec.): 0.000068 Raw Match Pattern: \r?\n\r?\n(?!((?!<pre>).)*</pre>) Raw Replace Pattern: </p><p> PHP Code Example: <?php $sourcestring="your source string"; echo preg_replace('#\r?\n\r?\n(?!((?!<pre>).)*</pre>)#ms','</p><p>',$sourcestring); ?> $sourcestring after replacement: asdfsedf</p><p> asdfja asdf asdf a sdf </p><p> asdf aasdf ds</p><p>asdfsdafsad</p><p> <pre>aa sdfasd asdfasd asdfa asdfsad</pre>