Update regex to match multiple variations of the stack.

https://regex101.com/r/yT2dT4/1