im really bad at this regex stuff.. so need help with making a function for this..
what im tryin to do is simple.. i am trying to remove a vbCODE IMAGE from a string . idea is to extract the [img] tags and the contents properly for display later.
Sample STRING:
I want to show you this picture: {img}http://www.domain.com/1.jpg{/mg}.. Do you like it?
( i have replaced brackets with curly braces so that it doesnt disappear in BB. )
i want the resulting string to be:
I want to show you this picture: <IMG1>.. Do you like it?
and later replace <IMG1> with the proper HTML <img> codes...
Lemme explain what im trying to do.. basically trying to extract data from the forum database and display in my site's front page.. i want the ALL TEXT on one cell and all images posted in another cell..separated..
any suggestions?