Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php insert char before each letter using regex

// insert .(dot) before each a-z letter
// [a-z] = range, {1} = group to catch
$string = preg_replace("/([a-z]{1})/", '.$1', $string);
 
PREVIOUS NEXT
Tagged: #php #insert #char #letter #regex
ADD COMMENT
Topic
Name
1+9 =