2

By far, the best tool for the job is RegExr.
The link above will take you to the online version, which is awesome and definitely the best RegEx tool I've ever used.
If you're looking for something you can install in Ubuntu, then try the desktop version, which is an Adobe Air application: