Please see the Delphix doc site for algorithms that use lookup files (includes screen shots). The free text algorithm supports use of regular expressions to search column data.
https://docs.delphix.com/docs/delphix-masking/delphix-masking-engine-admin-guide/managing-algorithm-...