Reputation: 43943
If you have a regular expression like test\(\d+,[a-z]+\)
. And it matches with some string, how can you extract the strings which matched \d+
and [a-z]+
.
Note: the above was a simple example, the solution should work for any cases.
Upvotes: 0
Views: 47