NOTE - Branch reset group is supported by Perl, PHP, Delphi and R.
Branch reset group is supported by Perl, PHP, Delphi and R.
A branch reset group consists of alternations and capturing groups. (?|(regex1)|(regex2))
Alternatives in branch reset group share same capturing group.
You have a test string .
Your task is to write a regex which will match , with following condition(s):
This is a regex only challenge. You are not required to write any code.
You only have to fill the regex pattern in the blank (_________).