Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Understanding why dot is not working for this particular example

Consider the following input:

"Wellbeing"         ralph@gmail.com         (+1)234-345-3434534
"7 Habits"          john@gmailcom           (+1)555-053-1234a67
"GTD"               victor@.co.il           02-765432
"Some               denis@yahoo.ca          09-234234Z3
"Jewish history"    Josh.gmail.com          "(+999)1-1223321"

I am trying the following regular expression in Notepad++: \s+.*@(gmail|yahoo)

Why does this expression not match the spaces followed by denis@yahoo in line 4? (It works if I put \w instead of .)

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

Must be a you problem – for me it matches the spaces (and some more stuff) before denis:

demo

Notepad v8.2.1 – [x] Wrap around on or off makes no difference because that just applies if you started say in line 3 to search and then after showing the last below that it would wrap around to the start of the file and show all other matches before line 3.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading