Skip to content

Latest commit

 

History

History
44 lines (24 loc) · 1.31 KB

File metadata and controls

44 lines (24 loc) · 1.31 KB

Pattern.BalanceChar(Char, Char, String) Method

Home

Containing Type: Pattern

Assembly: Pihrtsoft.Text.RegularExpressions.Linq.dll


Appends a pattern that matches one or many opening characters balanced with one or many closing characters. Between the characters can be zero or many characters that are neither opening nor closing character.

public Pihrtsoft.Text.RegularExpressions.Linq.Pattern BalanceChar(char openingCharacter, char closingCharacter, string groupName)

Parameters

openingCharacterChar

Opening Unicode character to balance.

closingCharacterChar

Closing Unicode character to balance.

groupNameString

A name of the group that contains balanced content of the opening and closing character.

Returns

Pattern

Exceptions

ArgumentException

groupName is not a valid regex group name.

ArgumentNullException

groupName is null.