Regex for PHP

$output = preg_replace('/[^A-Za-z0-9-]/', '', $input);
I seem to always have an issue for this. Perhaps this should help me quickly without having to revert to Google all the time. Not that I don't like it but sometimes when your internet is dial-up speed it makes a BIG difference

Comments

Popular posts from this blog

Chat Tu Chak Market

Rainy Saturday