I want to use powershell to search all AD samaccountname start with "jamec" - short form of full name like "Jame Cameron" - and end with number but not include other short form like "jamech"
"jamec" - match "jamec1234" - match "jamec12" - match
"jamech" - not match "jamech12" - not match
tried this "^jamec(\d+)(?!.*\d)" but string without number "jamec" become not match.