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

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -