title: Delete words from string based on prefix
body: <p>I have a variable "comments" that is just individual comments by users.  Their are some words that are sensitive, such as their usernames, that I need to remove from the string.  All usernames start with the same first 3 letters but are then different, and all user names are 8 characters long.  I'm trying to figure out a way to remove all usernames from the string but am having no luck.  They occur in different places in each string if they occur at all.  My first thought was to use TRANSWRD() but I don't think I can use that SAS function with a wildcard.  Does anybody know of a solution?  Thanks so much for your time!</p>