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