We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Matching Whitespace & Non-Whitespace Character
Matching Whitespace & Non-Whitespace Character
Sort by
recency
|
126 Discussions
|
Please Login in order to post a comment
I hate to be so pedantic, but these task descriptions are pretty bad. For instance, would imply that every is the same non-whitespace character and every is the same whitespace character.
The problem description should be written differently or come with some minimally-reproducible examples so we can infer what the challenge is really asking for.
r"(\S{2}\s){2}\S{2}"
got a working regex but I think I comlicated it ^(([\S][\s])([\S]{2}[\s])([\S]*))$