Link to home
Start Free TrialLog in
Avatar of MJ
MJFlag for United States of America

asked on

JS Regex for optional Characters?

What's the JS regex for the below where I can have "we" and then possibly some characters followed by ".bank.com?:


wedev.bank.com
weqa.bank.com
weuat.bank.com
westage.bank.com
we.bank.com

Thanks!
ASKER CERTIFIED SOLUTION
Avatar of zc2
zc2
Flag of United States of America image

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
Avatar of MJ

ASKER

Thank you!
Avatar of MJ

ASKER

^we\w*?\.bank\.com
Good point!