ereg.php : ereg « String « PHP






ereg.php

 
<?php
   $username = "Test";
   if (ereg("([^a-z])",$username)) echo "Username must be all lowercase!";
?>
  
  








Related examples in the same category

1.Capturing Text Inside HTML or XML Tags
2.Displaying elements of $regs array
3.Filling Patterns with ereg
4.ereg() function searches a string, returning true if the pattern is found, and false otherwise.
5.break $url down into three distinct pieces