Regular expressions are powerful and can be very complicated to get right. Often it's helpful to have a way of testing them out quickly before coding.
Regular Expression Applet (more links are available here)
Download the applet (GPL'd source included)