in reply to Re: Regex Strikes again!
in thread Regex Strikes again!

Hmm.. i see.. your rigth!

But can i put this condition in while cicle!!? I guess not because in that case i could not catch multiline comments!! Because in this case the file would be read line by line! And i must read all the file at once! Donīt i?

Thank you again

Replies are listed 'Best First'.
Re: Regex Strikes again!
by Abigail-II (Bishop) on Jul 16, 2003 at 11:09 UTC
    Put which condition in which while cycle? There's no while in your code fragment.

    Which part of "what you are trying to do is to complex for a simple regexp" do you fail to understand?

    I've said this before, what you need is a parser, nor a regexp. For simple languages like Java, you can get away with a parser that's not a full-language parser. I told you this three weeks ago, but you still are on the regexp road, and have made remarkably little progress.

    Don't match - parse!

    Abigail