Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Answer: What can regular expressions NOT do?

by turnstep (Parson)
on Apr 25, 2000 at 23:35 UTC ( #9094=categorized answer: print w/replies, xml ) Need Help??

Q&A > regular expressions > What can regular expressions NOT do? - Answer contributed by turnstep

Regexps are bad at very complicated cases, especially when things are nested. The typical example is HTML: it's easy enough to make a simple regexp to grab tags, but to get it really right and account for all cases (comments, greater than signs within quotes within HTML tags, multiline tags, etc.) you outgrow the usefullness of a regular expression and really need something that will actually parse the string (or file, whatever) that contains the HTML. Luckily, there are modules that will do just that for you.

  • Comment on Answer: What can regular expressions NOT do?
Replies are listed 'Best First'.
Re: Answer: What can regular expressions NOT do?
by Anonymous Monk on Jun 29, 2001 at 13:33 UTC
    Wipe your ass**** after you're done shxxing
Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2016-12-04 09:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (64 votes). Check out past polls.