File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes How to make a simplified regular expression Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "How to make a simplified regular expression" Watch "How to make a simplified regular expression" New topic
Author

How to make a simplified regular expression

vanlalhmangaiha khiangte
Ranch Hand

Joined: Sep 11, 2006
Posts: 170
Hi all,

I got a regular expression (00|11|22|33|44|55|66|77|88|99)9[0-9]+
The pattern is what is needed.. Can i make it into a more simplified form ?

Thanks in advance
Anand Hariharan
Rancher

Joined: Aug 22, 2006
Posts: 257

Look up "back references".

Perhaps something like is what you are looking for?

- Anand


"Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away." -- Antoine de Saint-Exupery
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to make a simplified regular expression