aspose file tools*
The moose likes Features new in Java 7 and the fly likes Pocket Guide: regexp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of JavaScript Promises Essentials this week in the JavaScript forum!
JavaRanch » Java Forums » Java » Features new in Java 7
Bookmark "Pocket Guide: regexp" Watch "Pocket Guide: regexp" New topic
Author

Pocket Guide: regexp

German Gonzalez-Morris
Ranch Hand

Joined: Nov 16, 2009
Posts: 190

Hello,

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

Cheers,

Germán

http://devwebcl.blogspot.com/
Palak Mathur
Ranch Hand

Joined: Jan 29, 2007
Posts: 313

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.


Palak Mathur | My Blog | TechJaunt | What is JavaRanch? | List of All FAQs
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19755
    
  20

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)


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Robert James Liguori
Author
Ranch Hand

Joined: Nov 27, 2007
Posts: 532
    
    5

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


My Blog (I frequently post on Java, JSF and NetBeans)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Pocket Guide: regexp