mardi 4 août 2015

Java: I want use Regex to count phone numbers

I am a newbie to Regex. I am building a messaging app with windowbuilder eclipse that handles user putting series of phone numbers and I want to use Regex to accomplish the following:

  1. Get input from user from TextArea and count the phone numbers
  2. total digit for each phone number is 11 (no spaces in between them)
  3. only single spaces or comma between each phone number are allowed

I'm still learning Regex haven't gotten used to it so I would appreciate it if someone could provide a solution to my challenges. Thanks

Aucun commentaire:

Enregistrer un commentaire