|
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+)\.?)
.
|
|
|