I do not see why this would interfere with Javascript 'cause you'll hardly
find "#if " in Javascript. Only case this could happen is when you have
Javascript inside a curly-braced (can I say this?) WM block which I think
would not work in WM anyways....
On Tuesday 08 May 2001 09:19, you wrote:
> Fedor Karpelevitch <[EMAIL PROTECTED]> writes:
> > what about smth like this (I may not be exact about the regexp syntax,
> > but you should get the idea:
> >
> > (#if\w*\(.+=.+\)\w*){([^}]*)}
> > replace with:
> > $1$2#end
> >
> > should work in most cases
>
> That would work for a multi-line regex (i.e. ./../../s), but it would
> also interfere with JavaScript. I'm starting to get the feeling that
> there's no smooth way to handle files which contain JavaScript short
> of writing a full tokenizer. :(
> Thoughts?
>
> Dan