Regular Expressions
PHP: The Language. The Ecosystem.
2025-02-24
16
Posix Style
<?php
echo
ereg_replace
(
'will be ([[:alpha:]]+)'
,
'has been \1'
,
'This string will be modified.'
);
?>
Output