From: Assaph Mehr Date: 2005-01-18T07:31:06+09:00 Subject: Re: My regexp stupidity needs assistance before loose all my hair! > I had an escape character match in the regexp: > > / [^`] \[(.+?)\] /x > > That was messing it up (Don't really know why) but I just "zeroed" it: > > / (?=[^`]) \[(.+?)\] /x > > And that did the trick. Thats because [^`] will match 'a single character that is not `'. When you did the zero-width lookahead, you made into 'possibly a character, so long as it's not ` '. Hope this makes sense :-)