How-to articles, tricks, and solutions about REGEX
Python string.replace regular expression
You can use the re module in Python to use regular expressions with the replace() method.
Remove all non-numeric characters from a string; [^0-9] doesn't match as expected
You can use the preg_replace function in PHP to remove all non-numeric characters from a string.
Remove control characters from PHP string
In PHP, you can use the preg_replace function to remove control characters from a string.