Top "Capture-group" questions

Regular Expression For Duplicate Words

I'm a regular expression newbie, and I can't quite figure out how to write a single regular expression that would "…

regex duplicates capture-group
How to get capturing group functionality in Go regular expressions

I'm porting a library from Ruby to Go, and have just discovered that regular expressions in Ruby are not compatible …

regex go capture-group
Why won't re.groups() give me anything for my one correctly-matched group?

When I run this code: print re.search(r'1', '1').groups() I get a result of (). However, .group(0) …

python regex object match capture-group
Regex group capture in R with multiple capture-groups

In R, is it possible to extract group capture from a regular expression match? As far as I can tell, …

regex r capture capture-group
Capture groups not working in NSRegularExpression

Why is this code only spitting out the entire regex match instead of the capture group? Input @"A long string …

objective-c regex ios nsregularexpression capture-group
Replace specific capture group instead of entire regex in Perl

I've got a regular expression with capture groups that matches what I want in a broader context. I then take …

regex perl replace capture-group
Regex - Repeating Capturing Group

I'm trying to figure out how I can repeat a capture group on the comma-separated values in this the following …

javascript regex capture-group
C++11 Regex Capture Groups By Name

I am converting my boost-based regular expressions to C++11 regex. I have a capture group called url: \s*?=\s*?(("(?<…

regex c++11 capture-group
Regex: capturing groups within capture groups

Intro (you can skip to What if... if you get bored with intros) This question is not directed to VBScript …

regex substring match capture-group
Problem with whitespace in a RegEx with capture groups

I've got a regular expression that I'm trying to match against the following types of data, with each token separated …

regex whitespace capture-group