-
Notifications
You must be signed in to change notification settings - Fork 183
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
better swipe to delete word #725
Conversation
This is just for links specifically? I'm not sure why that would be preferred over simple word deletes. Where did this complicated regex come from? |
so simply it's not used only for links it matches:
and delete last word regex matches:
then it can split things like math |
Did you come up with this regex on your own? Is there an SO link or something for this desired pattern? |
I actually wrote it myself but it can be tested in sites like regex101.com it also has explaination in right panel |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
K I tested and it seemed to work well. In the future add some code comments as to what this matches for.
this pattern doesn't separate words only by spaces for example links that were known as one word, now will be deleted like this:
https :// github. com/ => 4 words