I am trying to create a regex that matches the following criteria below
- first letter is uppercase
- remaining 5 letters following the first letter are lowercase
- ends in ".com"
- no letter repeats only before the ".com"
- no digits
- there are only 5 lowercase letters before the .com, with only the first letter being uppercase
The above criteria should match to strings such as: Amipsa.com Ipsamo.com
I created this regex below, but the regex seem to capture repeating letters - examples here: https://regex101.com/r/wwJBmc/1
^([A-Z])(?![a-z]*\1)(?:([a-z])\1(?!\2)(?:([a-z])(?![a-z]*\3)){3}|(?:([a-z])(?![a-z]*\4)){5})\.com$
Would appreciate any insight.