PHP RegEx functions do not seem to like the \d annotation. Use [0-9] instead.