chicken-users
[Top][All Lists]
Advanced

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

[Chicken-users] calling all regex gurus


From: Brandon J. Van Every
Subject: [Chicken-users] calling all regex gurus
Date: Thu, 30 Mar 2006 16:47:28 -0800
User-agent: Thunderbird 1.5 (Windows/20051201)

So, I need to extract the Version and Build numbers from the Chicken banner. The banner as given by "chicken -version" is:

$ chicken -version
) ___ (__/_____) /) , /) / (/ _ (/_ _ __ / / )__(_(__/(___(/_/ (_ (______) Version 2, Build 3 - windows-mingw32-x86 - [ dload ptables ]
(c)2000-2005 Felix L. Winkelmann


So how do I write a regular expression to rip out the "2" in "Version 2," and the "3" in "Build 3" ? For simplicity this can be 2 different regular expressions, it doesn't have to be done in 1 go. I'm reading various regex howtos, but there's a learning curve and if anyone knows how to do it off the top of their head, I'd learn faster. :-)


Cheers,
Brandon Van Every






reply via email to

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