which regular expression will return whatever is between a pair of single
quotes or double quotes?

this is a 'sample sentense' to be used as the target string.

Re: regex for whatever is between quotes? by Jerry

Jerry
Sun Feb 22 13:54:56 CST 2004

(['"])([^'"]*)\1

Use + instead of * if you don't want to return empty strings, escape the
quotes according to the language you use and don't forget that the first
match will be the quote, the text inside is a second matched expression.

Jerry

"Ellery Familia" <ellery@_NOSPAM_ellery.tv> wrote in message
news:eQGBhtX#DHA.1392@tk2msftngp13.phx.gbl...
> which regular expression will return whatever is between a pair of single
> quotes or double quotes?
>
> this is a 'sample sentense' to be used as the target string.
>
>