Regular Expression

Timothy Grant timothy.grant at gmail.com
Wed Dec 15 02:38:55 EST 2004


On Tue, 14 Dec 2004 23:16:43 -0700, Michael McGarry
<replytogroup at nospam.org> wrote:
> Hi,
> 
> I am horrible with Regular Expressions, can anyone recommend a book on it?
> 
> Also I am trying to parse the following string to extract the number
> after load average.
> 
> ".... load average: 0.04, 0.02, 0.01"
> 
> how can I extract this number with RE or otherwise?

Lot's of good solutions for the problem.

However, you might want to check out Jeffrey Friedl's book Mastering
Regular Expressions, published by O'Reilly.


-- 
Stand Fast,
    tjg.



More information about the Python-list mailing list