basic-regex-23-NegatedCharacterClass.php / php
<html> <head> <title>Negated Character Class Example</title> </head> <body> <?php sequenceToMatch2 = "123 45"; nonNumMatch = preg_match(sequenceToMatch1); if (<p>There was a non-numeric character in sequenceToMatch1.</p>"; } else { echo "<p>All characters were numeric in </p>"; } nonNumMatch = preg_match(sequenceToMatch2); if (<p>A non-numeric character was found in sequenceToMatch2.</p>"; } else { echo "<p>All characters were numeric in </p>"; } ?> </body> </html>
(C) Æliens 20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.