PDA

View Full Version : replace tag info...


Dimos
05-21-2003, 05:44 AM
Hi

I know how to replace all instances of "vbcrLf" from a db text feild to <br>

Is there a way to replace text like [img=image.jpg] to like <img src="image.jpg"> etc...

Bullschmidt
05-21-2003, 08:16 AM
You may want to check here:

http://www.aspmessageboard.com/forum/regularExpressions.asp

Lety
05-21-2003, 12:59 PM
Originally posted by Dimos
Hi

I know how to replace all instances of "vbcrLf" from a db text feild to <br>

Have you tried doing it the same way? I don't see any reason why it wouldn't work.

Bullschmidt
05-21-2003, 02:36 PM
I suggested regular expressions in the replace because perhaps something like image.jpg could have various other image filenames.