22 May, 2008

Regular Expressions!

I just learned regular expressions and successfully replaced every phone number formatted like this:

###-###-####

with the same phone number but formatted like this:

(###) ###-####

and all I had to do was search for (\d\d\d)-(\d\d\d)-(\d\d\d\d) and replace it with ($1) $2-$3 and bang zoom done!

Also to clarify my previous post, I was unconsciously rubbing my eyebrows, and then I noticed all these little hairs on the table, so I kept rubbing my eyebrows and SO MANY HAIRS BECAME ON THE TABLE

2 comments:

Anonymous said...

I have no idea what Regular expressions are. LOL. Weird man. Weird.

Gynelle

Nora said...

Ah, I thought you had plucked them. But I am sure they are still sexy.