I'd like to have a RegEx in Powershell which matches following expressions:
- MusMax / musmax
- MusMax1 / musmax1
But it should not match with:
- tMusMax / tmusmax
- tMusMax1 / tmusmax1
- itMusMax / itmusmax
- itMusMax1 / itmusmax1
The code that I have until now is following:
((?=.*[a-zA-Z])(?=.*\d).{6,7})
My Problem is that this RegEx only matches to the expressions with a digit in the last place, but the digit is optional so it should not match only these.
Thanks for any help!
?after the digit (\d)