texthero
texthero copied to clipboard
How can I remove all punctuation except for "@"
Hi, I'd like to preserve the @ symbol. For my use case, this helps me identify usernames
Are there any ways I can remove all punctuation except this?
I've currently been using remove_punctuation()
I don't think there's any way to do that right now.
Maybe a solution would be to change the function code and add a new parameter except_punctuation. And with that, the function would not remove the scores passed by the parameter.
Seems so @richramalho. except_punctuation is a good idea!