fixes #88 by adding a default REGEX to the function