I need to validate url, so I used site http://www.rubular.com/ and maybe I get wrong result.  So I wrote this: w{3}\.[a-z]+\.[a-z]{3} in http://www.rubular.com/ and it gived me almost wanted result. In my model Website I wrote:
 VALID_URL_REGEX = /w{3}\.[a-z]+\.[a-z]{3}/
 validates :url, :presence => true, format: { with: VALID_URL_REGEX }
Question : how I can make to check, that last part should contain only 3 letters ?
 
     
    