Link to home
Start Free TrialLog in
Avatar of Nytram
NytramFlag for United Kingdom of Great Britain and Northern Ireland

asked on

PowerShell Regex help -cmatch "^[a-z0-9.-]{1,64}@domain.com$"

Hi

I'm currently checking email addresses  with:-

-cmatch "^[a-z0-9.-]{1,64}@domain.com$"

I want to now let in "_" and "-"  where do I add this?
SOLUTION
Avatar of oBdA
oBdA

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
No comment has been added to this question in more than 21 days, so it is now classified as abandoned.

I have recommended this question be closed as follows:

Split:
-- Qlemo (https:#a42299412)
-- oBdA (https:#a42299401)


If you feel this question should be closed differently, post an objection and the moderators will review all objections and close it as they feel fit. If no one objects, this question will be closed automatically the way described above.

Pber
Experts-Exchange Cleanup Volunteer