Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

preg_replace examples

$result = preg_replace('/abc(def)hij/', '/1/', $string);
$result = preg_replace('/abc(def)hij/', '/$1/', $string);
$result = preg_replace('/abc(def)hij/', '/${1}/', $string);
Source by lzone.de #
 
PREVIOUS NEXT
Tagged: #examples
ADD COMMENT
Topic
Name
9+1 =