Thanks for your help!
I tried the Expresso tool - nice.
however i see some strange issues..
--------------------------------------------------------------
[^\$](AAA|BBB)123.*.xlsx
Is working in my C# program
Match
AAA123.xlsx
BBB123.xlsx
Don't Match
~$AAA123.xlsx
But in the Expresso tool it does not match any of them.
--------------------------------------------------------------
Then I tried your suggestion:
^AAA|BBB)123.*.xlsx$
That is working perfectly in the Expresso tool,
but when I use the Beginning of text ^ marker in my C# program, it matches nothing at all !
That statement was wrong, my own fault ! It's working as it should
--------------------------------------------------------------
Sometimes there are corrupt xlsx files in my search folders (prefixed with ~$), that is why i need this, because i don't want to handle those files.
P.S.
In Expresso the 2 first lines below are matching ((AAA|BBB)123.*.xlsx), and the last one only partially match. But in my C# program all three match. Is there some flag i should set in C# not to "match" something only "partially mathcing" ?
AAA123.xlsx
BBB123.xlsx
~$AAA123.xlsx