First, sweet line of code, seriously sweet.
Second, your VALID_REGEX will match digits, which shouldn't be in 'x' at this point.