Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General 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).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic