Regular Expressions
Introduction to PHP
2025-04-21
24
Posix Style
<?php
echo
ereg_replace
(
'will be ([[:alpha:]]+)'
,
'has been \1'
,
'This string will be modified.'
);
?>
Output