• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

1.5

 
Ranch Hand
Posts: 119
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Does Java 1.5 have any additions to regular expressions? Is it faster?
I love regular expressions there so powerfull.
cheers,
Yoo-Jin
 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Yoo-Jin Lee:
Does Java 1.5 have any additions to regular expressions?


Not much -- the 1.4 addition of java.util.regex.* was already quite thorough. They did, however, include some small regex-related stuff like the Scanner class into the early versions of J2SE 1.5.
You might want to check out the following resources describing what's new in J2SE 1.5:
New Language Features for Ease of Development in the Java 2 Platform, Standard Edition 1.5: A Conversation with Joshua Bloch
JavaTM 2 SDK, Standard Edition, Version 1.5.0 - Summary of New Features and Enhancements
 
Wanderer
Posts: 18671
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
And of course, you can simply check the API for JDK 1.5's java.util.regex package. New stuff is marked off as "Since 1.5" (if you look on the approriate page). You can find miscellaneous methods like quote() in Pattern and asResult(), usePattern(), quoteReplacement(), region(), regionStart(), regionEnd(), hitStart(), hitEnd(), and requireEnd() in Matcher. And there's the whole new interface MatchResult. None of these are really major, IMO, but they're convenient.
 
reply
    Bookmark Topic Watch Topic
  • New Topic