bug fix - fix a behavior for regular expressions which contains meta-character \x2d(-) or \x5e(^) in charcter classes
add posix extended regular expression and fix test.cc