Please navigate to the bottom of the page for Table of Contents
Thursday, July 26, 2012  Regular expressions interview
questions–Part 1  Regular expressions (RegEx for short) are
special strings that define patterns for matching specific sets
of strings. RegEx are a favorite interview question for many
developers as it allows you to quickly quiz an interviewee’s
ability to decode a problem into smaller parts without needing
to write a lot of code.  There are some excellent online tools
available to test your regular expression syntax and match. is
an interesting one to play around with. TextMate on Mac and
Notepad++ are good alternatives from a desktop perspective.  In
this post, we will review some of the basic regular expressions.
In future posts, we will look into constructing more complex
patterns.  Question: Develop a regular expression to match a US
phone number.  Let us take an example phone number –
425-882-8080 (this also happens to be Microsoft’s main line
number so don’t call it unless you absolut