This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Regular Expressions in Java

 
Jules Parry
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there a way of implementing Perl style regular expressions in Java?
Jules
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
With Java 2 v1.4, Sun included the java.util.regex package. Take a look at the September 2002 JavaRanch Newsletter and the February 2003 Java 101 JavaWorld article for easy introductions to the package.
Many alternative regex packages are available. Take a look at the list put together by the author of Mastering Regular Expressions (Second Edition).
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic