Code: Select all
#REGEX_NAME="([A-Z]+[A-Z_]*[\d]*){1,250}"
Procedure createRegEx(value.s)
Protected result=CreateRegularExpression(#PB_Any,value,#PB_RegularExpression_NoCase)
If Not IsRegularExpression(result)
DebuggerError(RegularExpressionError())
EndIf
ProcedureReturn result
EndProcedure
Global regexCreateSchema=createRegEx("^create schema (?<schema>"+#REGEX_NAME+");?$")
Global regexCreateTable=createRegEx("^create table ((?<table>"+#REGEX_NAME+")\.)?(?<schema>"+#REGEX_NAME+");?$")
I didn't know there is a max length for an expression.regular expression is too large
Then I trying something and find out. This error only appears with the PB_RegularExpression_NoCase flag.
Is this a bug or missing documentary?

