warn about unrecognized file open mode
support regular expressions for string matching