Choudhary has a good answer. To help you further check out some of these sites. A very helpful site is
regexlib[
^]; they have a large library of Regular Expressions. They also have a
RegEx tester[
^]. Also a very useful RegEx tool is available
here[
^]