php - Preg match from text with number -
need result after r[number]
for example
$text = "bridgestone turanza t001 xl r16 205/55 94w tl";
need get
r16 205/55 94w tl
this should started:
$text = "bridgestone turanza t001 xl r16 205/55 94w tl"; preg_match("/\br\d+ (.*)$/",$text, $matches); print_r( $matches );
matches r @ beginning of word, followed 1 or more numbers, space , captures thereafter in $matches[1]
Comments
Post a Comment