If I have a database table that has one column containing a regular expression pattern, is it possible to return rows (without systematically testing each row in turn) so that the row matches?
for example, a table like this:
RowID RegExPattern
1 foo\.$
2 bar\.$
3 baz\.$
4 (foo|bar)\.$
and the input line as follows:
foo.php
will return RowID 1and4
source
share