RE: [PHP] Replacing text on page, but not in img tags

2003-11-06 Thread Jay Blanchard
[snip] It would then be completely jacked up. Not only would it do the wrong img, but the tag in general would be screwed be cause of the bold tag. So what can I do? [/snip] Skip the image tag by using regex. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Replacing text on page, but not in img tags

2003-11-06 Thread Taylor York
Ya, i know it will be done with regular expressions, but how? I dont know how to format that kind of expression [snip] It would then be completely jacked up. Not only would it do the wrong img, but the tag in general would be screwed be cause of the bold tag. So what can I do? [/snip] Skip the

Re: [PHP] Replacing text on page, but not in img tags

2003-11-06 Thread John W. Holmes
Taylor York wrote: Lets say im trying to replace every occurance of 'hello' with 'bhi/b'. Here's something that's probably close to what you want. Something else you need to worry about besides img tags is what if the word hello appears in a a tag? within Javascript? This will match anything