Let say I have a string like this
sometext<br>sometext<br>sometext(Rating 50)<br>sometext<br>
All I want to get from this string is the "50" right after the "Rating". The number can range from 1 to 3 digits long.
Can I use something like preg_replace? explode? not sure how to get it.
preg_replace('/\(Rating (\d+)\)/','$1',$thestring);