So I wrote this regular expression:
Code: Select all
(\w|-|\.)+@(\w|-|\.)+\.\w{2,3}
Code: Select all
mozilla-thunderbird -compose to=%s
[li](\w|-|\.) = Any word character (a-z, 0-9, _, ...) or "-" or a dot[/li]
[li]+ = at least once[/li]
[li]@ = just the "at" sign[/li]
[li](\w|-|\.)+ = again: some word character(s)[/li]
[li]\.\w{2,3} = ...followed by a dot and then 2 or 3 word characters[/li]
voila.
Now have fun selecting some text like "mymail@yourisp.com" and press "Ctrl+Alt+R" (default shortcut for Klipper's actions!"