I have a string
"WELLS FARGO DEALER SERVICES May 18 06:11 4137 Reference# 10982"
"WELLS FARGO DEALER SERVICES"
You can replace:
/\W*\b\w*[^\WA-Z]\w*/ with the empty string.
or to deal with unicode letters:
To trim the end of the string, you can add
|\W+\z at the end. (You can do the same kind of thing to trim the beginning)