current position:Home>Does \W+ match everything in Python regular expressions?Why do I need to write \W+ twice here?

Does \W+ match everything in Python regular expressions?Why do I need to write \W+ twice here?

2022-08-06 09:37:24CSDN Q&A

img

img


Does \W+ match everything in Python regular expressions?Why do I need to write \W+ twice here, otherwise it will match other strings

copyright notice
author[CSDN Q&A],Please bring the original link to reprint, thank you.
https://en.primo.wiki/2022/218/202207301824177157.html

Random recommended