Regular Expressions
Starting PHP
2024-11-29
36
Posix Style
<?php
echo
ereg_replace
(
'will be ([[:alpha:]]+)'
,
'has been \1'
,
'This string will be modified.'
);
?>
Output