does labkey SQL allow regular expression matching?

LabKey Support Forum (Inactive)
does labkey SQL allow regular expression matching? Ben Bimber  2010-07-13 12:54
Status: Closed
 
does labkey sql allow regular expressions? i did not see it in the documentation. i am trying to do the following:

species can be inferred from subjectID using pattern matching. I have a table with the columns Species and Pattern. I'd like to join this table to study.participant where the Id matches the pattern in the pattern column.

I could approximate this using a bunch of LIKE "r%"; however, using a true regular expression would make it much cleaner and more accurate. thanks.
 
 
marki responded:  2010-07-13 13:04
No. Unfortunately regex isn't part of standard SQL and we are trying to stay portable.
 
Ben Bimber responded:  2010-07-13 13:06
ok. i think the right thing to do in this one instance is to move that logic to the validation script and actually store species in a table. inferring it from Id is what we currently do, but is not ideal.