Show Output
Match Words Starts or Ends with a Pattern Using RegExp in PHP
$0'; $text = 'Words begining with car: cart, carrot, cartoon. Words ending with car: scar, oscar, supercar.'; echo preg_replace($pattern, $replacement, $text); ?>