uses extended POSIX regex, fixes both regex tests

...rk fixes #12 and #11