PDA

View Full Version : Regular Expression help!


Tommy Boy
03-24-2005, 05:27 AM
I'd like to automatically change certain words once the user posts a new message, but I don't want them to be changed inside bbcodes. For example: I want the word "vbulletin" to be changed to "vBulletin", but "[url=http://www.vbulletin.com]" should remain as is.

Basically, I need an "str_replace()" replacement that ignores strings inside brackets.

Jolten
03-24-2005, 01:47 PM
you realize the case won't make a difference for urls, right?

Dean C
03-24-2005, 03:39 PM
Exactly, use replacements for this btw :)