Fixes #3 by matching when values as regex patterns