This regex performed on "waswas" returns the entire string unless I make it "waspwas".
w[^p]*s
How can I make this regex return two separate matches?
This regex performed on "waswas" returns the entire string unless I make it "waspwas".
w[^p]*s
How can I make this regex return two separate matches?
If you want w
as a break point, you need to exclude it from matching in the middle.
w[^pw]*s