Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Re: Regex Strikes again!

by nofernandes (Beadle)
on Jul 16, 2003 at 10:07 UTC ( [id://274752]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://274752]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2024-04-25 14:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found