<?php $regex = "/^[ a-z0-9,.+!:;()-]+$/i"; $string = "some user input in a form passed via POST to form processor"; if (preg_match($regex, $string)) { echo "Found a match!"; } else { echo "The regex pattern does not match. :("; }
You have javascript disabled. You will not be able to edit any code.