Hi,

Suppose I want to match all white spaces if it is followed by "\w+=" or not 
followed by "date or time"
:

$_ =~ s(/\s+(?=\w+=)/ || /\s+(?!(date|time)))/*/g;

Doesn't seem to do what I want.

Given a string:

"Jan 19 11:37:21 firewall date=2007-01-19 time=11:42:15 msg="User admin login"


I want it to produce something like:
"Jan*19*11:37:21*firewall date=2007-01-19 time=11:42:15*msg="User admin 
login"*log=3






 
____________________________________________________________________________________
It's here! Your new message!  
Get new email alerts with the free Yahoo! Toolbar.
http://tools.search.yahoo.com/toolbar/features/mail/

Reply via email to