0

Please help me with a regex that is enclosed within a pair of double quotes.

Here is the example:

Matching a ' within "double ' quotes" is what i am ' looking for "in this ' question" can ' anybody help

As marked, I need the bold ' to be picked up

Quotes within

  • "double ' quotes

  • "in this ' question"

are the only ones the regex should identify.

CAJE
  • 977
  • 3
  • 13
  • 31

1 Answers1

0
'(?=[^"]*"(?:[^"]*"[^"]*")*[^"]*$)

You can try this.See demo.

https://regex101.com/r/vN3sH3/5

vks
  • 65,133
  • 10
  • 87
  • 119