Regex Match Quotation Marks
I wrote a regex to match some stuff. It's essentially matching some PHP code. I want to be able to match the quotation marks, but only the pairs.
So, for example, if I have something like:
I want the second ['"] to only match the same one as the first, so:
should match, but not
(and ultimately) "Something 'random'"
So, along the same lines, I have this regex (in PHP):
It matches basically a function call which looks like:
(with 'b' being optional).
It's working for single-quotes, but for some reason it doesn't with double-quotes. Any idea?