How do I make regular expression not capture what has \}
in text? I want you to get all }
, but I want it to be escaped with the \ character be discarded, not ignored.
I am trying this expression: [^\]}
but it returns a character before }
...
Summary: If you have the \ character before }, discard the catch.