Roelof Wobben schreef op 3-6-2014 8:55:
> Robert Klemme schreef op 3-6-2014 8:41:
>> 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
>>
>
> Im a little bit further.
> I have this : (?<=\.)(.*?)(?=\.)
>
> it seems to work except I have to tell that on the .*? the / is not 
> included.
> And on the (<?=/.) I have to find a way to include the //
>
> When I do (<?=/[.|/])  or (<?=/[.|//]) I see a message that I have to 
> excape the /
>
> Roelof
>
>

I tried this one (?<=\[.|\//\)(.*?)(?=\.)
but still the error message taht there are un escaped backslashes .

Roelof