I'm trying to search a string in PHP using preg_match(), to return a string that takes the format of 'xdr', where x is a single digit.
The string is otherwise made of characters, numbers, '.' full stops and spaces.
I'm hopeless with regular expressions, can somebody help me out?
I've tried ^([a-zA-Z0-9]+)\s2dr$ but it doesn't work
For example, the string might look like A really big 2.0 was 3dr once