Regular expression in OpenEdge

Status
Not open for further replies.
U

user2831737

Guest
I want to check if a variable is in pascal case, in OpenEdge.

I found the matches operator, and I write the following code:

define variable cVariable as character no-undo.

cVariable = "cPascalCase":U.

message cVariable matches 'c[A-Z]*':U.


But it doesn't work, it shows "no". Is there a way to specify in OpenEdge that the second character should be upper case? And more, to check if the variable contains groups of words starting with upper case?

Thanks in advance!

Continue reading...
 
Status
Not open for further replies.
Top