removed use of extended regular expressions for portability