hardware.matcher: added a regexp function to be used in specs files