If I have a string such as
lotsofcrap”somethingimportant”moreotherstuff
is it possible to get Regex to match just whatever is between the ” “, excluding the quotation marks? So the way to detect it would be something like “.*”, but that will return “somethingimportant” rather than just pure somethingimportant
You can use parenthese to create a capturing group. How you access it depends on the language/library you’re using–typically the capture groups are available as
$1or\1in Perl-like languages. For example, in Perl: