Could anyone help me to assemble a pattern that matches an arbitrary sequence of spaces and tabs?
\s+ should capture all whitespace, including spaces, tabs, carriage returns, and some weird whitespace characters. Use \s* if you want it to be optional.
\s+
\s*