Stephen Froehlich <s.froehlich@cablelabs.com> writes:
> I was wondering if there was an elegant way to match a given string against a column of regexes within PostgreSQL?
I'monly working with a few tens of lines, so I can read them all into R and examine them 1-by-1, but I thought I would
ask.
Something like
... WHERE mystring ~ ANY (SELECT regex FROM regexes)
should do.
regards, tom lane