Re: [PHP] preg_match_all for dummies

2005-11-24 Thread Jochem Maas
Kristen G. Thorson wrote: I am a regex retard. good for you ;-) why not take the easy route and simply strip out all HTML comments (and whatever maybe inside them) from the string(s) before you do the search for the 'bbcode'? I am trying to pull keywords out of this crazy bbcode-like file, b

[PHP] preg_match_all for dummies

2005-11-23 Thread Kristen G. Thorson
I am a regex retard. I am trying to pull keywords out of this crazy bbcode-like file, but only for bbcode-like code NOT enclosed in HTML comments. I currently have managed to create this regex: '/(?)/U' Which matches [!keyword::crazy bbcode!] and not That's a step in the right directio