Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I remove all punctuation except for "@" #220

Open
batmanscode opened this issue Mar 17, 2022 · 2 comments
Open

How can I remove all punctuation except for "@" #220

batmanscode opened this issue Mar 17, 2022 · 2 comments

Comments

@batmanscode
Copy link

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()

@richecr
Copy link

richecr commented Sep 10, 2022

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.

@batmanscode
Copy link
Author

Seems so @richramalho. except_punctuation is a good idea!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants