I have been searching around but couldn't find the answer.
I want to look for a 3 letter pattern where 2 of them should be either D or E and the third one can be anything. And the order doesn't matter.
For example: DEA or ESD or DZE or PDE should all match. For a sample string like this 'EDEDEDADEDE', overlapping patterns should also be detected so 'EDE', 'DED', 'EDE', 'DED', 'EDA', 'DAD', 'ADE', 'DED', 'EDE' should all be in the search.
What I can think of is: [A-Z][DE]{2}|[DE][A-Z][DE]|[DE]{2}[A-Z]
but this seems clunky. Any simpler solutions?
Thanks.