[MacPerl-AnyPerl] Spliting a tekst string

2002-05-21 Thread Multi-Graphics

I'm building a whois script, and now i need to spilt the output in a nich
way.

I get for example this output from the .nl whois server,

Rights restricted by copyright. See http://www.domain-registry.nl/whois.php
Domain name: test.nl (second domain) Organisation: General Internet
Rooseveltlaan 32 -1 hg 1078 NJ AMSTERDAM Administrative Contact: M Taverne
Phone: +31 6 24672849 E-mail: [EMAIL PROTECTED] Technical Contact: CW
Hostmaster Phone: +31 23 5698070 E-mail: [EMAIL PROTECTED] Registrar:
Cable & Wireless Bijlmermeerstraat 62 2131 HG HOOFDDORP Domain Nameservers:
ns1.widexs.nl 212.204.192.252 ns2.widexs.net 212.204.207.192 ns3.widexs.nl
62.250.7.3 Domain first registered: 20-09-1999 Record last updated:
09-03-2002 Record maintained by: NL Domain Registry

Now I want to look it like this,

   Rights restricted by copyright. See
   http://www.domain-registry.nl/whois.php

   Domain name:
  dont.nl (first domain)

   Organisation:
  Don't New Media
  Spinnekop 80
  1035 CN AMSTERDAM

   Administrative Contact:
  A. van der Zwan
  Phone: +31 207742582
  E-mail: [EMAIL PROTECTED]

   Technical Contact:
  K. ter Velde
  Phone: +31 205787700
  E-mail: [EMAIL PROTECTED]

   Registrar:
  Ladot Nederland B.V.
  Arendstraat 29
  1223 RE HILVERSUM

   Domain Nameservers:
  dns-3.ladot.com   217.22.66.90
  dns-4.ladot.com   217.22.66.91

   Domain first registered: 27-09-2001
   Record last updated: 08-04-2002
   Record maintained by: NL Domain Registry

But the problem i think is that a server for an other domain extention like
..info gifs a other output sting, but that alsow need to look nich.

Any iformation about this problem that can help me wil be very helpful for
me.

Thanks anyhow

Eelco Alosery
[EMAIL PROTECTED]






Re: [MacPerl-AnyPerl] verifing a string

2002-07-31 Thread Multi-Graphics

> $srting =~ s//$1/igs
> 
This script line isn't working when the $srting contains

>> if the string contans for example this:
>> 

after CONTENT=" is a new line, and the script will not see the keywords.
I have tryed to put .*? somware else but whit no result.

Any other sugestions will be very welkom.


But thanks anyway