Hi guys and gals - looking for a little help here if possible...
I have the following string stored in a database field:-
Now, I have pulled that out of the database successfully, but I need to find a way of pulling just the image name (or src="" substring) out of the string. I assume some sort of regular expression would be needed here, but I just can't get my head around it.Code:<img src="/images/foldername/image.gif" class="absmiddle" alt="Image">
Also, I need to be able to replace the whole string (from "<img" to ">") with something else for display purposes. Don't ask! Is there an easy regular expression that will allow me to do this?
Thanks in advance all, Regular Expressions are really confusing me.