I planned to provide regex support in my service so my users can configure a regex and a String will be processed if it matches the regex.
Then I stumbled upon these articles:
And found that a simple regex can be disastrous in my servers.
I need only basic matching abilities.
I'm planning to just strip parenthesis from the regex and if it is a valid regex, it'll be processed. I believe stripping parenthesis alone will be enough to save my servers from those attacks.
Am I right in this or missing anything?