samanime — 2011-03-24T18:03:55-04:00 — #1
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'"
samanime — 2011-03-24T18:17:49-04:00 — #2
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?