Justin Erenkrantz wrote:

patch_sed="/#define.*$3_PATCH_VERSION/s/^.*\([0-9][0-9]*\).*$/\1/p"

The above substitution, given the string "45-dev", returns "5".


Changing the substitution to \([0-9][0-9a-z-]*\) returns "5-dev", which is still wrong.

Can anyone tell me why the above would strip the "4" off of the front of "45-dev"?

Regards,
Graham
--
-----------------------------------------
[EMAIL PROTECTED]               "There's a moon
                                        over Bourbon Street
                                                tonight..."



Reply via email to