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

Pocket Guide: regexp

 
German Gonzalez-Morris
Ranch Hand
Posts: 263
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

Any information in the new features of regular expression from Java 7 ?

Cheers,

Germán
 
Palak Mathur
Ranch Hand
Posts: 342
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
German Gonzalez-Morris wrote:Hello,

Any information in the new features of regular expression from Java 7 ?

Cheers,

Germán


I don't think there were any changes to java.util.regex API.
 
Rob Spoor
Sheriff
Pie
Posts: 20526
54
Chrome Eclipse IDE Java Windows
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There were a few:
- better support for unicode, including Pattern.UNICODE_CHARACTER_CLASS as a new flag value.
- support for named groups, which can be queried using Matcher.group(String name)
 
Robert James Liguori
Author
Ranch Hand
Posts: 551
5
Java Netbeans IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Relative to regular expressions, the Pattern and Matcher classes are good to know... but we do not cover them in the book.

Thank you for the question.

-- Robert
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic