<string> =~ "<regexp>"Example: judge if String "adfAWa" is composed of uncapitalized letters
UQLreturn "Ultipa" =~ "^[a-z]+$"
Result0
Example: Convert 'Graph Database' to lowercase and judge whether it is composed of uncapitalized letters
UQLreturn lower("Ultipa.com") =~ "^[a-z]+$"
Result0
Example: Judge each row of an alias whether it is composed of uncapitalized letters
UQLuncollect ["Ultipa.com", "grAph", "graph"] as a return a =~ "^[a-z]+$"
Result0 0 1
Sample graph: (to be used for the following examples)

Example: Find nodes whose email is in format [email protected] or [email protected]
UQLfind().nodes({email =~ "^[a-zA-Z0-9_.-]+@[a-zA-Z0-9]+\.(com|cn)$"}) as n return n{*}
Result|--------------- @professor --------------| | _id | _uuid | age | email | |-------|-------|-------|-----------------| | P001 | 1 | 53 | [email protected] | | P002 | 2 | 27 | [email protected] | |---------------- @student ---------------| | _id | _uuid | age | email | |-------|-------|-------|-----------------| | S003 | 5 | 25 | [email protected] |
Example: Find nodes of @professor, whose email is in format [email protected] or [email protected]
UQLfind().nodes({@professor.email =~ "^[a-zA-Z0-9_.-]+@[a-zA-Z0-9]+\.(com|cn)$"}) as n return n{*}
Result|--------------- @professor --------------| | _id | _uuid | age | email | |-------|-------|-------|-----------------| | P001 | 1 | 53 | [email protected] | | P002 | 2 | 27 | [email protected] |