Is there a way I can get rid of notations at the front and the end of a string?
For example,
"hello," -> "hello"
"hello;" -> "hello"
In other words, remove all punctuation after, before, or within a word, except single quotes and single dashes if they're followed by more letters.
More examples,
"lies,", "'This", "all-eating" and "deserv'd."
will become
"lies", "this", "all-eating" and "deserv'd"