I'm new to regex expressions and with the help of some regex tester i've written the following regex expression:
Match m = Regex.Match(readText, @"/\[[A-Z][A-Z]\-\d\d\d\d\d\-\-\]/g");
Test values:
[CP-00000--#G100] -No match
[CP-00000--] -Match
[CP-00099--] -Match
[CP-00000--.base#G100] -No match
If I test this in the online Regex tester this expression matches all the cases I want it to match. But whenever I test this in my program i doesnt find any machtes.