On Mon, Jun 2, 2014 at 7:51 PM, Roelof Wobben <r.wobben / home.nl> wrote:

> I try to find a regex which find only the domain name without the .com or
> .nl
>
> I tried :
>
> \w{3+}
>
> But on http://www.tamarawobben.nl/testhier it finds http tamarawobben and
> testhier
>
> How to solve this ?

That depends on your input. Do you want to find those domain names in
a larger text? Do you try to parse URIs? Do you have full qualified
domain names from which you want to extract a portion?

Kind regards

robert

-- 
[guy, jim].each {|him| remember.him do |as, often| as.you_can - without end}
http://blog.rubybestpractices.com/