- Use [possessive quantifiers](https://www.regular-expressions.info/possessive.html) wherever possible to improve efficiency and avoid potentially catastrophic backtracking - Avoid unnecessary capturing groups (e.g. use `(?:x|y)` instead of `(x|y)` where the content does not need to be known)
(?:x|y)instead of(x|y)where the content does not need to be known)