uses extended POSIX regex instead of basic to allow the + operator to work fixes #12 and #11