Note :
left double quotation (\") = &ldquo
right double quotation (\") = &rdquo
left single quotation (\') = &lsquo
My current regex
Use ASCII escape sequence to tell the regex which characters are you referring to.
\x93
- Refers to &ldquo\x94
- Refers to &rdquoSo the regex you need is: [\x93]*[^x94]
Or if your you know what characters your string consists of, then: [A-Za-z0-9\x93]*[^x94]
, and so on. Add more characters as per your need.
this is the right regex that I am looking at :
(?<!.*“)‘(?!.*”)
Thanks!
If I understood ur question..This may be what you want
(?<!&ldquo.*?)&lsquo(?!&rdquo)