Please bare with me, I'm still kind of a newbie...
I'm rewriting a news script I've got for one of my existing sites. Originally, I used flat files, so I could perform a php function any time I needed to. I've moved now to a mysql database, and can't use php function in it anymore.
The php function I was doing created a backwards compatable javascript pop-up window the exact size of the image, saving me quite a bit of typing.
While adding in all of my old news entries into the database, I used the following BB-like syntax:
<a href="[jswindow=imagename.jpg]">link to image</a>
(hope this formats ok)
What I want is to perform my php function (which happens to be named jswindow) on that imagename.jpg. I've looked through a few regular expression "guides", but I'm still confused as ever. How would I go about doing this?