This block could also be a preg_match that captures the value (and would be shorter)