I don't think I explained the issue very well. The user will input a single word which could be either.
CDC_*_* or
DDC(SMR or RMR)*
So if my limited knowledge or regex is correct the above doesn't match. I tested it . Hence my reply clarifying the issue. Sorry for any confusion caused.