I have discovered that if I was to have the following code:
[ img ]image.gif[ /img ] Some text here [ img ]anotherimage.gif[ /img ]
Instead of replacing the content between each set of tags in turn, instead it first takes the first [ img ] tag and the last [ /img ] tag. Hence it replaces it with:
< img src="image.gif[ /img ] Some text here [ img ]anotherimage.gif" >
I assume a way to solve this problem would be to make sure [ /img ] or [ img ] is not in the image address of the regular expression (i.e. between the two tags there is no embedded image tag.
Could someone please help?
Thanks
Jamie