Your best bet might be to try any of the free online regex builders: regex builder - Google Search.
I love https://regexr.com/ - you can paste your own data (much easier than trying to describe to us here), you can build your own regex, and get a free explanation with links to the reference manual immediately, and you can see immediately whether your regex does what you want or not.