Phone Number Normalization

Hey Guys!

Having a slight problem with Phone Number Normalization with LCS 2005.  The problem being is I haven't a clue about the string setup of the numbers!

I'm trying to get 2 strings setup for phone numbers in the UK.  The format I need is:

xxxxx xxxxxx

and

xxxx xxx xxxx

I've tried working out what (/d/d/d*$1) means but I'm afraid I can't speak Microsoft Martian!

Any help would be appreciated!

Cheers,

Dave
LVL 7
daveforsterAsked:
Who is Participating?
 
MacNuttinCommented:
$  is the "end of line" symbol. () is the grouping * is repitition

so I think /d/d/d*$1 means true when 3 digits over and over ending with 1

another link to drive you crazy:
http://www.troubleshooters.com/codecorn/littperl/perlreg.htm#op_$
0
 
MacNuttinCommented:
(/d/d/d*$1) is what's as a "regular expression" ha go figure.
Also it's widely used not just microsoft.
0
 
MacNuttinCommented:
/d is shorthand for digit i think

here's a more detailed explaination:
http://articles.techrepublic.com.com/5100-10878_11-5055982.html
0
 
daveforsterAuthor Commented:
Thanks mate!  From the basis of this answer it seems that you have WAY too much time on your hands to be able to understand this! ;)

Worked a treat, simple but effective! ;)
0
 
moorhouselondonCommented:
xxx xxxx xxxx

is a valid UK phone number e.g., 020 7627 9234
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.