On 18 July 2013 20:23, Saul Wold <s...@linux.intel.com> wrote: > I thought we were going to look into use regex instead of adding a new > variable.
Specifically, I was thinking something like this would work: package_regex.inc has an optional new variable, REGEX_PV_FILTER. If set, this will be used with re.sub to filter the PV extracted by REGEX. Something cloning the syntax of Perl's s/// operator maybe, using / to split the input RE and the replacement string. i.e. REGEX_PV_FILTER_pn-docbook = "\./" would replace all dots with the empty string, thus changing 1.2.3 into 123. Ross _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core