MJ
asked on
Simple JavaScript Regex Question About Optional String
What changes do I have to make to modify this to match testcreditcard. and creditcard.
if (currHost.match(/(accountopening\.|creditcard\.|web\.oflows\.us|blog\.)/i)) { }
I thought it should it be something like the below but that seems to allow anything infront of creditcard : if (currHost.match(/(accountopening\.|(test)?creditcard\.|web\.oflows\.us|blog\.)/i)) { }
Thanks!
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER