Regular expressions can be validated from the DevTest Workstation-->Help Menu-->Regular Expression Helper. Follow the below:
. Step 1:
. Step 2: Add the test to match and regular expression pattern and see that pattern matched or not. If the pattern is matched then whole text will be highlighted in Yellow.