Regular Expressions

I have been getting better and better at using regular expressions in my C#, PHP, and JavaScript work.

I love the AIR version of this tool which helps you easily test your expressions.

I recently created this expression for a phone number search.

[0-9]{10}|[^0-9]{1}[0-9]{3}[^0-9]{1,3}?[0-9]{3}[^0-9]{1,3}?[0-9]{4}

It first looks for a string of 10 numbers or it looks for groups of numbers separated by non-numbers totaling 10 numbers.