Which pattern would NOT match "123!456!"? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

Which pattern would NOT match "123!456!"?

why would (\d*\W)+ match?

7th Apr 2017, 1:24 PM
UDDIPTA KHANDAIT
UDDIPTA KHANDAIT - avatar
3 Answers
+ 4
\d zero or more digit... which is true \W not a word... which is also true for ! + one and mpre time which is true.
7th Apr 2017, 1:33 PM
Geoffrey L
Geoffrey L - avatar
+ 3
Which pattern would NOT match "123!456!"? Answer :- (\D+\s?)+
29th Jun 2020, 6:18 AM
Gourav Tomar
Gourav Tomar - avatar
+ 1
The answer is (\D+\s?)+
19th Feb 2020, 11:57 AM
Zoe Potter
Zoe Potter - avatar