To build data rule definitions more quickly, create a data rule definition by starting from a predefined data rule definition. Modify it to fit your specific data conditions.
The predefined rule definitions do not include the exact rule definition that you need. However, the predefined rule definition TextSubstrInRefList contains the following description: Substring text value starting in position 3 for length 3 is in reference list; applied to string data. This rule definition seems similar to what you need because you want to evaluate a substring for inclusion in a reference list. You can copy the predefined rule definition and modify it to fit your needs.
If you want to use the data rule definition to analyze data quality within InfoSphere Information Analyzer, generate a data rule from the rule definition. If you want to use the data rule definition in another InfoSphere Information Analyzer project, or in the Data Rules stage, publish the data rule definition.