I never have been good with regular expressions, perl-compatible or otherwise. And I've been looking at this for awhile. So I'll just tell exactly what I need, and see if anyone can write the expression for it.
Basically, I need to make a replacement on all image tags within some [size] bb coding tags. So what this would call for is searching for all occurrences of [size= followed by any number of integer values, followed by ] followed by any number of anything that does not match [/size] followed by <img followed by any number of anything that does not match
[/size] followed by [/size]
That's what to search for. In the replacement, I need to put all of this together, only add some text after every occurrence of <img within the [size] tags.
What I'm really trying to do is make it so that, like text, you can resize images on the forum with the use of the [size] tags. I already have the javascript figured out for it, but I need to insert an onLoad command into every image tag within the [size] tags. For quite some time now, I thought I had it working perfectly. But just today, I found out that it starts to screw up when you have multiple sets of image tags running around in your posts.
Anyway, I hope someone else can figure this one out, because I sure can't. X_x
Thanks
Basically, I need to make a replacement on all image tags within some [size] bb coding tags. So what this would call for is searching for all occurrences of [size= followed by any number of integer values, followed by ] followed by any number of anything that does not match [/size] followed by <img followed by any number of anything that does not match
[/size] followed by [/size]
That's what to search for. In the replacement, I need to put all of this together, only add some text after every occurrence of <img within the [size] tags.
What I'm really trying to do is make it so that, like text, you can resize images on the forum with the use of the [size] tags. I already have the javascript figured out for it, but I need to insert an onLoad command into every image tag within the [size] tags. For quite some time now, I thought I had it working perfectly. But just today, I found out that it starts to screw up when you have multiple sets of image tags running around in your posts.
Anyway, I hope someone else can figure this one out, because I sure can't. X_x
Thanks