Use syscmd, ifelse, and sysval. Mainly as an exercise to prove that this macro can be used in packages without regex.c.