Skip to content

DefaultSqlErrorExtractor.FirebirdConstraintRegex method

protected static Regex FirebirdConstraintRegex()

Remarks

Pattern:

(?:unique index|constraint) "(?<name>[^"]+)"

Options:

RegexOptions.IgnoreCase | RegexOptions.CultureInvariant

Explanation:

○ Match with 2 alternative expressions.
    ○ Match a sequence of expressions.
        ○ Match a character in the set [Uu].
        ○ Match a character in the set [Nn].
        ○ Match a character in the set [Ii].
        ○ Match a character in the set [Qq].
        ○ Match a character in the set [Uu].
        ○ Match a character in the set [Ee].
        ○ Match ' '.
        ○ Match a character in the set [Ii].
        ○ Match a character in the set [Nn].
        ○ Match a character in the set [Dd].
        ○ Match a character in the set [Ee].
        ○ Match a character in the set [Xx].
    ○ Match a sequence of expressions.
        ○ Match a character in the set [Cc].
        ○ Match a character in the set [Oo].
        ○ Match a character in the set [Nn].
        ○ Match a character in the set [Ss].
        ○ Match a character in the set [Tt].
        ○ Match a character in the set [Rr].
        ○ Match a character in the set [Aa].
        ○ Match a character in the set [Ii].
        ○ Match a character in the set [Nn].
        ○ Match a character in the set [Tt].
○ Match the string " \"".
○ "name" capture group.
    ○ Match a character other than '"' atomically at least once.
○ Match '"'.

See Also