0

I want a regex but cannot get the right one -

The regex should be able to check a string where the 1st part before a . (dot) is any group of letters (case insensitive) or numbers. After the dot there is either .com or .co.xy where x and y are any 2 letters (case insensitive). I tried this but it didn't work:
/^(?!.*\.com+.co.**$).*$/
Some examples which would qualify:
ghikl.com
jk.com
k5343.com
lop.co.vb
kkkkpol.com
09k.co.lp

Yaan
  • 561
  • 1
  • 5
  • 7

0 Answers0