Introduction

Syntax

Program Help

Examples

Download

Match Tool 2.1

Match Tool 3.0

 

DEELX Basic Pattern Syntax: Named Group

Return: Content | Prev: Group | Next: Backward reference


Named Group (?<name>xxx)

Same as common group, named group is to enclose sub-expressions into a single element.

Then, what captured can be retrieved through the name.


Remarks

DEELX numbers named capturing groups after all the unnamed groups have been numbered,  from left to right.

DEELX allows more than one groups have the same group name. Logically, they are the same group, for example: (?<string>".*?")|(?<string>'.*?') .

If one named group contains another group which has the same name, the one which is inside will do not capture, for example: (?<number>(?<number>\d+)\.?) .

 

 

RegExLab.com © 2005 - All Rights Reserved