I tend to use \s* to match a variable number of whitespace characters (space, tab, newline etc), and \d* for a variable number of numeric characters.
Note that the * option allows for zero as a valid number of occurrences. If you want to force at least one the use + as the repetition indicator instead of *.
|