- or download this
use strict;
use warnings;
...
attempt 2 yields: d
attempt 3 yields: aAcd
attempt 4 yields: aAcd
- or download this
URL:
domain:
match: http://(\w+)\.(\w+)\.
replace: $2
- or download this
apply s/http://(\w+)\.(\w+)\./$2/ to 'URL' to produce 'domain'