Given:

A table that lists some regular expressions, for example:

id reg 1 %BC_ 2 __AC_ 3 %FC ... и т.д. 

Required:

Find all the “id” whose regular expressions match the specific phrase.

For example, there is a code: “ DEACY ”, which corresponds to (in this example) only line No. 2.

    1 answer 1

    In your example, not regular expressions, but search masks. The query is quite simple if the other "regular expressions" are similar to this:

     SELECT * FROM regulars WHERE 'DEACY' LIKE reg; 
    • What the doctor ordered! Thank you - Eugene Gorbov