topical media & game development

talk show tell print

basic-regex-23-EregAlnumTest.php / php



  <html>
  <head>
  <title>ereg() [:alnum:] Test</title>
  </head>
  <body>
  <?php
  match = ereg('[[:alnum:]]+', "Hello world!", matches);
  if (match)
  { 
   echo "<p>A match was found.</p>";
   echo "<p>matches[0]</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.