I want to match strings ending with javascript characters (% 20,% u200E, etc.) or the end of the line.
I have this regex: (/\w*?)*(?=(%\w{2,}|[\s/]))which matches the parts /textin these:
/ text
/ Text
/ Text% 20
/ Text% u200E
But this can not be compared: /text(the character does not end, even a new line)
source
share