Use \d instead of [0-9] in regex.