[TF] Dumb trigger question, please help
Brought to you by:
kenkeys
|
From: dmoore at ucsd.e. (D. Moore) - 2003-04-09 15:13:21
|
On Wed, Apr 09, 2003 at 01:45:29AM +0100, Matt Robinson wrote: > I scoured the mailing list archive for answers and it doesn't look like > someone's asked this before.. > > Currently I log all my sessions to files named after the month and the > world-name (i.e., 2003-Apr-worldname.log ) but really all I want to log > is lines with URLs and email addresses. Thing is, I really have no idea > how to do this. I gathered from the help files that /log can't be used > on pattern-text, but I found /writefile in textutil.tf .. so I jumped > into the deep end with: > > /require textutil.tf > /def -mregexp -t"([^ ]+@|(f|ht)tp://)[^\. ]+(\.[^\. ]+)+" catchurl = > /echo -e %P0 %| /writefile -a /usr/home/makali/tfurls.txt -e tells echo to write to tferr, which is not carried across the pipe, just remove that. > ... which does absolutely nothing. Fearing that my scary regexp was > somehow false, I tried: > > /def -t"http://" catchweb = /writefile -a /usr/home/makali/tfurls.txt this is unlikely to match things without -mregexp or leading/trailing *s. -- david |