RE: Regex to match domain for cookie

2004-04-16 Thread Traeder, Philipp
> -Original Message- > From: Babale Fongo [mailto:[EMAIL PROTECTED] > > How do I match a domain name starting from the dot? > > > @domains = ("http://www.domain.com ", "http://www.domain4you.co.uk > "http://www.domain-house.de"; "https//rrp.cash-day.com" > ); > > >

Regex to match domain for cookie

2004-04-16 Thread Babale Fongo
How do I match a domain name starting from the dot? # Match something like these ".domain4you.co.uk" ".domain-house.de" This is what I have: @domains = ("http://www.domain.com ", "http://www.domain4you.co.uk "http://www.domain-house.de"; "https//rrp.cash-day.com" ); f

AW: Regex to match domain for cookie

2004-04-15 Thread B. Fongo
x27;; [EMAIL PROTECTED] Betreff: RE: Regex to match domain for cookie It might be easier to do it with a split. # untested foreach (@domains) { my @parts = split(/\./, $_); my $name; if (@parts > 1) { shift @parts; $name = '.' . join('.', @parts); } prin

RE: Regex to match domain for cookie

2004-04-15 Thread Hanson, Rob
(@domains) { my $name = $_; $name =~ s/^[^\.]+//; print $name; } -Original Message- From: B. Fongo [mailto:[EMAIL PROTECTED] Sent: Thursday, April 15, 2004 7:29 PM To: [EMAIL PROTECTED] Subject: Regex to match domain for cookie How do I match a domain name starting from the dot? # Mat

Regex to match domain for cookie

2004-04-15 Thread B. Fongo
How do I match a domain name starting from the dot? # Match something like these ".domain4you.co.uk" ".domain-house.de" This is what I have: @domains = ("http://www.domain.com ", "http://www.domain4you.co.uk "http://www.domain-house.de"; "https//rrp.cash-day.com" ); f