filename regex?

From: Jules (groupspost_at_yahoo.com)
Date: 01/30/04


Date: 30 Jan 2004 14:11:01 -0800

Am trying to modify a regular expression in a perl script at:
http://groups.google.com/groups?selm=bb5bn4%242ljv%241%40FreeBSD.csie.NCTU.edu.tw

> the regex in this line:
> if (my ($ft) = $_ =~ m|^(\d+)\.\d+\.|) {
> has to match the file name of your mail files. I use mail files named like
> so:
>
> 1049831444.88767.thunderbird.etv.net,S=2514
>
> timestamp.procId.domainname,S=filesize

My mail files are named slightly different, for example:
1075497569.85543_0.host.domain.net

timestamp.procId_0.domainname

Can anyone help modify the regex to match my filename?



Relevant Pages

  • Re: filename regex?
    ... |Am trying to modify a regular expression in a perl script at: ... |> has to match the file name of your mail files. ... |Can anyone help modify the regex to match my filename? ... of meta-memes is more widely recognized, ...
    (comp.lang.perl.misc)
  • Re: filename regex?
    ... > Am trying to modify a regular expression in a perl script at: ... >> has to match the file name of your mail files. ...
    (comp.lang.perl.misc)