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
right now I am using IndexOf(), a string replace method and SubString() but its ugly!
Solved! Go to Solution.