I want to create a regex that satisfies the following condition:
- Can contain any character that is not
r. Can be empty string.
- Can contain
are not allowed.
I tried using positive lookbehind, but
abc d is not matched and
foo\"bar is matched:
How can I fix this? Here is the link to regex101 for ease of testing: regex101.com/r/I1byls/1
Read more here: Source link