> you may not need a large string to cause a major performance bottleneck – it's entirely possible to formulate regular expression patterns that consume exponentially more CPU time for each additional input character
[Source](https://blog.codinghorror.com/regex-performance/)
Might be better if we check 1 by 1 like @petter does