Code: Select all
'!<a href=[''"]([^''"]+)["'']\s*>[^<]+</a>!mi'I figure it must be in some way similar, but so far the alterations I've attempted haven't got me anywhere.
I don't want someone to write it for me, what I'd really like is for some one to talk me through the above regex and tell me what all the brackets and squiggles are actually doing, so I can figure out the changes myself!
Oh, and I have tried to read several tutorials on regular expressions, but I figured if I fully understood something that was relevant to what i was doing I would pick it up a bit quicker!
Thanks!