You can ask ChatGPT to create a JavaScript regex that matches your specified pattern. Then test the regex supplied by ChatGPT via a tool like regex101 .com/. It's likely to work. You no longer need a PHD in regex to use it.