How can I remove numbers and space from the beginning of a line?
For example, from '13 Adam Court, Cannock ', delete' 13 '
Thank!
(Apologies for the almost duplicate, I realized that you need to use PHP for this)
Use the same expression that I gave in the JavaScript response , but apply it using preg_replace():
preg_replace()
preg_replace('/^\d+\s+/', '', $str);
Since everyone else goes along the \ d + \ s route , I will give you the answer of a dead brain
$str = preg_replace("#([0-9]+ )#","",$str);
, / , - http://
:)
:
^\d+ (.*)$
preg_replace ("^\d+ (.*)$", "$1" , $string);
/^\d+\s+/
^\d+
it \s+
\s+
, -...
\d 0,1,2,3,4,5,6,7,8,9.
\d
0,1,2,3,4,5,6,7,8,9
\s .
\s
(+) , ...
+
\d+ ()
\d+
\s+ ( ..)
, , - . preg_replace().
/^[\s\d]+/ . :
/^[\s\d]+/
$str = preg_replace(/^[\s\d]+/, '', $str);
. -, , , . BoltClock.