Use POSIX 1003.2 ERE and quote regex

close #5