# Simplify Regular Expressions
The evaluation of regular expressions can block processes through unsafe defined regular expressions.
# Context
Regular expressions can be used to solve different kinds of problems. However, if not configured correctly, their validation can lead to high usage of the CPU. An example of such an unsafe regular expression can be seen here (opens new window).
TIP
- Usage of safe-regex (opens new window) or Java's
Pattern
class (opens new window) - Do not include user input into regular expressions