I've been doing PHP for a few months now, and I feel I'm getting used to it. However, the first time I saw complex regex-examples, I wondered what that line with random signs, letters and numbers had to do with PHP
Now, I have only encountered one big regex-related challenge, which has been a source for headache the last week
I want this regex to do the following:
Select the <br>-tags between <pre>-tags in a string
Code: Select all
<br>foo<pre>foobar[color=#FF4000]<br>[/color]barfoo[color=#FF4000]<br>[/color]</pre>barCode: Select all
<br>foo<pre>foobarbarfoo</pre>bar