In picture 1, I want to match the first parts of Gmails, It worked. But when I used Negative Lookahead in picture 2 in order to match the first parts of the anothers, It didn’t work. Tell me why, please!!!
Thank you so much!
1 Like
Try putting the @
in a positive look ahead, it is matching everything because you are checking "not space not followed by @gmail.com
", well, the whole mail is not followed by @gmail.com
1 Like
[^\s]+(?!@gmail\.com)(?=@[a-z0-9]+\.[a-z0-9]+)
This is solved. Thank you!
1 Like