nmh-workers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Nmh-workers] Thoughts: header/address parsing


From: Ralph Corderoy
Subject: Re: [Nmh-workers] Thoughts: header/address parsing
Date: Wed, 06 Aug 2014 12:31:42 +0100

Hi Jón,

> I’m with Norm on the general principle.

Not to take away from Norm's and your point, but I often find GNU grep's
-o option handy as a tokeniser.

    $ echo 'foo+bar9/3.14*.42' |
    > grep -Eo '[a-z][a-z0-9_]*|[0-9]*\.[0-9]+|[0-9]+|.'
    foo
    +
    bar9
    /
    3.14
    *
    .42
    $

Cheers, Ralph.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]