preg_match("/(country(\ )?([a-zA-Z]{2,2})/",$info,$arr);

questo va cn una riga generata da me, ma quella generata dallo script no...why?


% This is the RIPE Whois query server #2.
% The objects are in RPSL format.
%
% Note: the default output of the RIPE Whois server
% is changed. Your tools may need to be adjusted. See
% http://www.ripe.net/db/news/abuse-pr...-20050331.html
% for more details.
%
% Rights restricted by copyright.
% See http://www.ripe.net/db/copyright.html

% Note: This output has been filtered.
% To receive output for a database update, use the "-B" flag

% Information related to '151.46.0.0 - 151.46.255.255'

inetnum: 151.46.0.0 - 151.46.255.255
netname: IUNET-BNET46
descr: IUnet
descr: Via Lorenteggio 257
descr: Milano, I-20100
country: IT
admin-c: IIS1-RIPE
tech-c: IIS1-RIPE
status: ASSIGNED PA
mnt-by: AS1267-MNT
mnt-lower: AS1267-MNT
mnt-routes: AS1267-MNT
source: RIPE # Filtered

person: Infostrada Internet Staff
address: Infostrada SpA
address: Via Lorenteggio 257
address: I-20152 Milano
address: Italy
phone: +39 02 413311
e-mail: staff@iunet.it
nic-hdl: IIS1-RIPE
mnt-by: AS1267-MNT
source: RIPE # Filtered

% Information related to '151.46.0.0/16AS1267'

route: 151.46.0.0/16
descr: INFOSTRADA
origin: AS1267
remarks: removed cross-mnt: AS1267-MNT
mnt-lower: AS1267-MNT
mnt-routes: AS1267-MNT
mnt-by: AS1267-MNT
source: RIPE # Filtered
il mio scopo è proprio prendere la riga di country