1
0
mirror of https://github.com/php/web-php.git synced 2026-03-30 19:22:17 +02:00
Files
archived-web-php/apachecon/s_regex.php3
Rasmus Lerdorf 2424277ad8 Add main slides
1998-10-21 23:44:28 +00:00

19 lines
578 B
PHP

<?php require "header.inc"?>
<H1>Regular Expression Handling</H1>
<UL>
<LI>Full POSIX extended regular expressions.
<LI>No support for Perl syntax yet (\w, \W, \s, etc) but most can be emulated with POSIX constructs ([[:space:]], [[:alpha:]], etc).
<?example('<?php
echo ereg_replace("will be ([[:alpha:]]+)", "has been \\\\1", "This string will be modified.");
?>');?>
<H6>Output:</H6><BLOCKQUOTE>
<?php
echo ereg_replace("will be ([[:alpha:]]+)",
"has been \\1", "This string will be modified.");
?>
</BLOCKQUOTE>
<?php require "footer.inc"?>