2010-04-10 15:25:07 +00:00
|
|
|
module Locomotive
|
|
|
|
module Regexps
|
2010-07-23 20:09:54 +00:00
|
|
|
|
2010-12-30 14:24:47 +00:00
|
|
|
SUBDOMAIN = /^[a-z][a-z0-9_-]*[a-z0-9]{1}$/
|
2010-07-23 20:09:54 +00:00
|
|
|
|
2010-05-02 23:33:17 +00:00
|
|
|
DOMAIN = /^[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}(:[0-9]{1,5})?(\/.*)?$/ix
|
2010-07-23 20:09:54 +00:00
|
|
|
|
2010-04-10 15:25:07 +00:00
|
|
|
end
|
2010-07-23 20:09:54 +00:00
|
|
|
end
|