When you have a problem and you try to solve it with regex. You had another problem. 🙈
I personally think regex is a really hard subject to learn, I always just copy and paste from stack overflow and experiment it a bit with my testing framework.