wood burning stoves*
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 Android Security Essentials Live Lessons this week in the Android 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
 
wood burning stoves
 
subject: How to make a simplified regular expression
 
Similar Threads
how to deal with this string?
Regular Expression
Strings
Questions of Javascript Regular Expression
make text bold