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.

cjhines
  • 1,148
  • 3
  • 16
  • 32

1 Answers1

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

You can try this.See demo.

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

vks
  • 67,027
  • 10
  • 91
  • 124