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
- .convert.WebMacro program Daniel L. Rall
- Re: .convert.WebMacro program Fedor Karpelevitch
- Re: .convert.WebMacro program Daniel Rall
- Re: .convert.WebMacro program Fedor Karpelevitch
