fixed regexp in netsol.whois
This commit is contained in:
parent
1d51d1f7dd
commit
ca1ebfa5d8
2 changed files with 8 additions and 5 deletions
|
@ -3,6 +3,7 @@
|
|||
- recovered brnic.whois and added bripw.whois
|
||||
which was implemented over brnic.whois by
|
||||
mistake
|
||||
- fixed netsol.whois
|
||||
|
||||
2003/03/12 Ross Golder <rossigee@users.sourceforge.net>
|
||||
- Minor corrections and a note about coding style
|
||||
|
|
12
netsol.whois
12
netsol.whois
|
@ -41,13 +41,15 @@ class netsol extends gtld {
|
|||
$data_str=preg_replace("/\s+/"," ",$data_str);
|
||||
preg_match("/^(.+)Registrant:_/",$data_str,$refs);
|
||||
$r["disclaimer"]=preg_replace("/_/","\n",$refs[1]);
|
||||
preg_match("/^.+Registrant:_(.+)\s+\((.+-DOM)\)_/", $data_str,$refs);
|
||||
//preg_match("/^.+Registrant:_(.+)\s+\((.+-DOM)\)_/", $data_str,$refs);
|
||||
preg_match("/^.+Registrant:_(.+)\s+\((.+)\)_\s*(.+)_\s*Domain Name:\s(.+)_/", $data_str,$refs);
|
||||
$r["owner"]["organization"]=$refs[1];
|
||||
$r["owner"]["handle"]=$refs[2];
|
||||
preg_match("/\(.+-DOM\)_\s*(.+)_\s*Domain Name:\s(.+)_\sAdmin/",$data_str,$refs);
|
||||
$r["owner"]["address"]=explode("_",$refs[1]);
|
||||
//preg_replace("/_/","\n",$refs[1]);
|
||||
$r["domain"]["name"]=$refs[2];
|
||||
$r["owner"]["address"]=explode("_",$refs[3]);
|
||||
//preg_match("/\(.+-DOM\)_\s*(.+)_\s*Domain Name:\s(.+)_\sAdmin/",$data_str,$refs);
|
||||
//$r["owner"]["address"]=explode("_",$refs[1]);
|
||||
//preg_replace("/_/","\n",$refs[1]);
|
||||
//$r["domain"]["name"]=$refs[2];
|
||||
preg_match("/Administrative .*?Contact:_(.+?)\((.+?)\)\s(.+?@.+?)_/",$data_str, $refs);
|
||||
$r["admin"]["name"]=$refs[1];
|
||||
$r["admin"]["handle"]=$refs[2];
|
||||
|
|
Loading…
Reference in a new issue