Re: Match against a column of regexes?
Tom Lane <[email protected]> Fri, 18 Oct 2019 09:26:57 +0200
| Newsgroups | gmane.comp.db.postgresql.novice |
|---|---|
| Message-ID | <[email protected]> |
Stephen Froehlich <[email protected]> writes: > I was wondering if there was an elegant way to match a given string against a column of regexes within PostgreSQL? I'm only 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