a quick note on two useful on line tools allowing test and validate regular expressions.
First one is
https://regex101.com
that allows tests in multiple dialects (php, javascript, python...) and gives a verbose but useful explanation of the steps.
Last but not least it allows to share links to tests prepared like this one:
https://regex101.com/r/9y9n85/20
also useful is:
https://regexper.com/
that comes with the comforting subtitle
You thought you only had two problems…
and allows crreating diagrams about how a given regexp works
example:
https://regexper.com/#Results%20%3D%20%28%5Cd%2B%29
First one is
https://regex101.com
that allows tests in multiple dialects (php, javascript, python...) and gives a verbose but useful explanation of the steps.
Last but not least it allows to share links to tests prepared like this one:
https://regex101.com/r/9y9n85/20
also useful is:
https://regexper.com/
that comes with the comforting subtitle
You thought you only had two problems…
and allows crreating diagrams about how a given regexp works
example:

https://regexper.com/#Results%20%3D%20%28%5Cd%2B%29