I am working on automating a set of injury coding rules promulgated by the government.

For each injury, data including the occupation and the industry of the injured employee are included.

There are allowable and non-allowable occupation/industry combinations.

So, for example, the provided data might be:

Occupation code: 624120
Industry code: 123456

However, the allowed Industry codes for the provided occupation are:

524***
5613**
6111**
6112**
6113**
62****
8131**
813212
92****

How do I go about comparing the provided Industry code with the list of allowable Industry codes?

Thoughts?