[mkgmap-dev] regex to remove leading 0
From Steve Ratcliffe steve at parabola.me.uk on Mon Oct 7 20:04:58 BST 2013
On 07/10/13 14:05, Felix Hartmann wrote: > Sorry, for asking this simple question here - but what is the regex > command to remove a leading 0? set ref='${ref|subst:^0~>}' Will remove a single leading zero. set ref='${ref|subst:^0+~>}' will remove any number of leading zeros. Eg 00078 => 78 Being able to use regex in the substitution filter is pretty new and was added by Enrico Liboni in r2664. ..Steve
- Previous message: [mkgmap-dev] regex to remove leading 0
- Next message: [mkgmap-dev] regex to remove leading 0
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the mkgmap-dev mailing list