09-30-2009 06:10 PM
Ok so after poking around looking for Regex support on BlackBerry I've come across the Pattern Repository... I don't get it! It appears to me that with this repository you are adding match patterns so that the OS can recognize them??
How do I use these in my code?
All I want to do is perform simple regex matches and replaces so that I may format phone numbers...
I get a phone number like this.
String PhoneNum = "17775551212"; or "91 7775551212" or "<Joe Blow 917775551212>" etc.
// Perform Regex
Output: 91-777-555-1212
right now I am using IndexOf(), a string replace method and SubString() but its ugly!
Thanks!
Solved! Go to Solution.
10-01-2009 01:25 PM
10-01-2009 07:28 PM
Try the regexp-me project
10-01-2009 07:59 PM
Thanks,
You answered my question and pointed me in the right direction...