This guide will give you some tips and hopefully you'll be able to write better and clean code whenever regex might get involved.
Feel free to contribute.
- Avoid using regex whenever possible
- Get to know the available php regex functions
- A note on security
- Comments
- Pattern modifiers
- Escaping a backslash hell
- Writing modular regexes
Special thanks to: