an extension of at&t ksh93 for matching strings to regular expressions