Hacker News new | ask | show | jobs
by abdusco 1678 days ago
> They are often just plain strings—how is e.g. Intellij supposed to spot them reliably and help you?

WebStorm or any IDE that has WebStorm functionality built-in can detect `/pattern/` in Javascript and give you an option to test it and warn you of syntax errors. PyCharm will help you with functions in `re` module, Rider with `Regex.IsMatch` and so on, all JetBrains IDEs have some sort of contextual help that gives you guidance on stdlib functions that accept regular expressions.

https://www.jetbrains.com/webstorm/guide/tips/check-regex/