I need to enhance the regex for this application to satisfy the following.
The current regex looks like this
^[CDFGIMP][^_\\s]*_\\S*$
and the following code will be valid
C_12345
https://regex101.com/r/x2jUnt/2
it needs to be adapted to accept the following cases
- The new ReGex format should contain at least 2 underscores
Exception: if the code begin with 'M' then it only must contain at least one underscore
FKT12965_I20_GB215_01
- FKN16250_I26_GB215_03
- FKT12808_I09_GB215_01
- CQ425441_I09_GB214_01