topical media & game development

talk show tell print

basic-regex-23-SimplePregTest.php / php



  <html>
  <head>
  <title>Simple preg_match() Regex Test</title>
  </head>
  <body>
  <?php
  if (preg_match("/Hel/", "Hello world!")) echo "<p>A match was found using paired '/' as delimiter.</p>";
  if (preg_match("{Hel}", "Hello world!")) echo "<p>A match was found using paired '/' as delimiter.</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.