Hi all.
I'm a complete newbie when it comes to regular expressions, and I'm finding them a tad confusing.
I'm trying to do two things, both with a snippet of text that has this format (replace curly brackets with square brackets)
{URL=http://www.blah.com}Link Text Here{/URL}
The first thing I'm trying to do, and have done (although how well I don't know) is to strip the URL tags, just leaving the Link Text Here. The reg.exp I've used for this is
/\[(.|\s)*?\]/
The second thing i'm trying to do is to get the URL out of it, i.e. [url]http://www.blah.com,[/url] stripping everything else. This I'm stuck on.
Can anyone enlighten me? 🙂 And at the same time, perhaps point me in the direction of some half-decent RE tutorials? 🙂
Muchos gracias.