4 ms·
Allowing users to enter regular expressions is definitely something that should only be entered into with caution. It is effectively code in a programming langu
by ZoFreX 10y ago
Allowing users to enter regular expressions is definitely something that should only be entered into with caution. It is effectively code in a programming language that will be run, after all.
For example, it means their input needs parsing - and parsing is very hard to get right and frequently results in exploitable bugs. There are also potential problems where regexps could take a very long time to execute, which could be a denial of service issue.