There is an excellent site called http://regex101.com that does exactly that, as well. It also provides access to different regex engines, allows you to save and debug your regexes and test strings...very nice.
1.4m articles
1.4m replys
5 comments
57.0k users