I think a regex could do that quite easily. You do know that regex will allow the equivalent of an "or" right (em|px|…). And using the regex function replacement plugin could easily numerically evaluate any set of digits with decimal points to compare it to 0.
|