Containing Type: Pattern
Assembly: Pihrtsoft.Text.RegularExpressions.Linq.dll
Method | Summary |
---|---|
IfGroup(Int32, Object) | Appends an if construct with a content to match if the numbered group is matched. |
IfGroup(Int32, Object, Object) | Appends an if construct with a content to match if the numbered group is matched and a content to match if the numbered group is not matched. |
IfGroup(String, Object) | Appends an if construct with a content to match if the named group is matched. |
IfGroup(String, Object, Object) | Appends an if construct with a content to match if the named group is matched and a content to match if the named group is not matched. |
Appends an if construct with a content to match if the numbered group is matched.
public Pihrtsoft.Text.RegularExpressions.Linq.QuantifiablePattern IfGroup(int groupNumber, object trueContent)
groupNumber Int32
A number of the group.
trueContent Object
The content to be matched if the numbered group is matched.
trueContent is null
.
groupNumber is less than zero.
Appends an if construct with a content to match if the numbered group is matched and a content to match if the numbered group is not matched.
public Pihrtsoft.Text.RegularExpressions.Linq.QuantifiablePattern IfGroup(int groupNumber, object trueContent, object falseContent)
groupNumber Int32
A number of the group.
trueContent Object
The content to be matched if the numbered group is matched.
falseContent Object
The content to be matched if the numbered group is not matched.
trueContent is null
.
groupNumber is less than zero.
Appends an if construct with a content to match if the named group is matched.
public Pihrtsoft.Text.RegularExpressions.Linq.QuantifiablePattern IfGroup(string groupName, object trueContent)
groupName String
A name of the group.
trueContent Object
The content to be matched if the named group is matched.
groupName is not a valid regex group name.
groupName or trueContent is null
.
Appends an if construct with a content to match if the named group is matched and a content to match if the named group is not matched.
public Pihrtsoft.Text.RegularExpressions.Linq.QuantifiablePattern IfGroup(string groupName, object trueContent, object falseContent)
groupName String
A name of the group.
trueContent Object
The content to be matched if the named group is matched.
falseContent Object
The content to be matched if the named group is not matched.
groupName is not a valid regex group name.
groupName or trueContent is null
.