Hi,
This is something I made to help my workflow when creating fragment validators. Rather than writing it in Code Sudio & testing it on a form, you can play with it here and then cut & paste the code.
https://m-tranter.github.io/validator/
Thank you for your contribution Mark.
You might want to take a look at https://www.regex101.com which has a great library of existing regex expressions you can use too.