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
|
110 Discussions
|
Please Login in order to post a comment
Regex_Pattern = r"^\S+\s{1}\S{2}\s\S+$"
\S+\s\S+\s\S+ is my pattern with it all testcase got passed except input = 123 123 123
any suggestion
Hi, guys! Can someone explain to me why the solution
\S{2}\s\S{2}\s\S{2}
passes all test cases, including this one?The expected output here is True, and in my mind it should be False. I appreciate any feedback :)