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

Re^6: Regex conditional match if previous match in same expression is true?

by radiantmatrix (Parson)
on Apr 23, 2007 at 14:25 UTC ( [id://611524]=note: print w/replies, xml ) Need Help??


in reply to Re^5: Regex conditional match if previous match in same expression is true?
in thread Regex conditional match if previous match in same expression is true?

Yes, the Jakarta-ORO provides a Perl5Matcher class (and relatives) that supports all of the Perl-5 regex engine, with the (fairly obvious) exception of being able to execute Perl inside a regex.

It's been a lifesaver on one of my current projects, where I have to use Java (plugins for a J2EE app, plus boss requirement) to do tasks particularly suited to regexen. I'm thankful to the Jakarta folks for making it so that I don't have to learn Yet Another Regex Syntax. ;-)

<radiant.matrix>
Ramblings and references
The Code that can be seen is not the true Code
I haven't found a problem yet that can't be solved by a well-placed trebuchet
  • Comment on Re^6: Regex conditional match if previous match in same expression is true?
  • Download Code

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2024-04-16 10:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found