Select multiple words / Copy multiple words
hello, I have a text with lot of email adresses. With a simple regex I manage to find each of emails. But how can I select those multiple email and copy it all of ones?
I believe this should be an important feature !
…how can I select those multiple email and copy it all…?
You can’t do it directly, but this thread gives some ideas on how it can be accomplished.
I have an idea, a small amount of testing suggests this could work. Instead of searching for email addresses, look for all the other words. That is to say look for any word which does NOT have an '@ in it. Remove all those and you would be left with what you wanted. You would need to make sure you do not save the result in the current file as that would then change it. But you could easily copy what’s left into a new file.
So my regex is
I’ve used the
,to delimit the results, you could replace that with anything else you wished.
I think your idea was covered in the thread I pointed to earlier…see where @guy038 in that thread says:
(?s)^.*?(Your regex to match
Like your recent suggestion, that is a destructive search, which may be a downside, although a simple Undo can take care of that after the resultant data is Copy’d out…