Assuming posix is required, the following result was found.
def$ This expression matches def in the string: abcdef The expression does not match def in the following string: defghi POSIX Character Class The POSIX character class operator lets you search for an expression within a character list that is a member...