Avoid regex in PHP 90% of the time, using filters – 1 minute tips
Regex are incredibly useful in a lot of situation, but we can use a very simple alternative in a lot of cases: PHP filters. Let’s see how you can leverage those to make your code more readable and robust.