Hi,
This should work.

$_ = $your_string_array;
$_ =~ /accessed (.*?)\./;
$date = $1;
print $date;

Regards,

Mikael Larsson


-----Ursprungligt meddelande-----
Från: David Samuelsson (PAC) [mailto:[EMAIL PROTECTED]]
Skickat: den 26 mars 2002 11:53
Till: '[EMAIL PROTECTED]'
Ämne: reg exp help!


i got this line in an array allready, if i do a print off the array it
prints this line. 

Last accessed 08-mar-02.10:27:55 by fdefgre.Domain [EMAIL PROTECTED]

what i want to do now is only pick out the date that is the "08-mar-02"

As it says in the manuals, one of the best with things with perl is the
abillity to use regexp, but also one of the worst/hardest things aswell =)

//Dave



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to