I have a complex product code to validate in Python code as below:
A8F30-ABCD-EFGH-IJKLM - for each letter I have around 7 different possibilities. Example:
1º (A) Character - Fix, all the time will be A;
2º (8) Character - Flexible, can be number 5 or 8 only;
3º (F) Character - Flexible, can be string F or M or G or C only;
4º (3) Character - Flexible, can be number 2 or 3 only;
5º (0) Character - Flexible, can be number 0 or 2 only;
6º (-) Character - FIX;
7º to 21º - Character - Flexible, can be string A or B or C or D or E or F or G;
How can I define the RegEx 'Regular Expression' to cover this validation code?