Hello all, I'm really confused as to using preg_replace
but slowly learning.
I need help with the function:
$str= preg_replace('#\W\d+#', '\W \d+', $str);
The idea is that Im looking for numbers that have letters directly before them with no spaces,
ie abc123. (NOT 'abc 123' and NOT '123abc')
and how do I simply include a space or character in between so abc123 becomes abc 123 or abc@@123
thanks everyone!