Hi, is there a way to convert a list of emails to urls in Calc?
joe@bloggs.com
to
http://www.bloggs.com
Thanks
[Solved] Convert email to URL?
-
- Posts: 17
- Joined: Fri May 13, 2016 1:11 pm
[Solved] Convert email to URL?
Last edited by Hagar Delest on Tue Oct 22, 2019 7:52 am, edited 1 time in total.
Reason: tagged solved
Reason: tagged solved
OpenOffice 4.1.4 / MacOS 10.13.6 High Sierra
Re: convert email to URL?
First, select all of the cells you want to affect. Using Edit -> Find & Replace, set Search For to
^[^@]+@
and set Replace With to
www.
Under More Options, choose Regular Expressions and Current Selection Only. Click Replace All and you should be done. I would definitely save a copy of the document in case you replace more than you mean to.
^[^@]+@
and set Replace With to
www.
Under More Options, choose Regular Expressions and Current Selection Only. Click Replace All and you should be done. I would definitely save a copy of the document in case you replace more than you mean to.
OpenOffice 4.1 on Windows 10 and Linux Mint
If your question is answered, please go to your first post, select the Edit button, and add [Solved] to the beginning of the title.
If your question is answered, please go to your first post, select the Edit button, and add [Solved] to the beginning of the title.
-
- Posts: 17
- Joined: Fri May 13, 2016 1:11 pm
Re: convert email to URL?
You have saved me loads of time! thanks a lot!FJCC wrote:First, select all of the cells you want to affect. Using Edit -> Find & Replace, set Search For to
^[^@]+@
and set Replace With to
www.
Under More Options, choose Regular Expressions and Current Selection Only. Click Replace All and you should be done. I would definitely save a copy of the document in case you replace more than you mean to.
Couple of other quick questions if you have a second?
Now the urls are in the cells, is there a way to bulk convert them to clickable links? I know that pressing space after them in the cell does this, but is there a less manual way?
Also, bit of a long shot, but is there a way to select and move the email address from a cell to the adjacent cell?
Cell contains : "Joe Bloggs joe@bloggs.com"
Is there a way to split the name and address to two cells: "Joe Bloggs" | "joe@bloggs.com"
Thanks a lot
OpenOffice 4.1.4 / MacOS 10.13.6 High Sierra
Re: Convert email to URL?
You could adapt the techniques proposed in How to find the last word in cell, copy to new cell or in Splitting Full Name into F|M|LIs there a way to split the name and address to two cells: "Joe Bloggs" | "joe@bloggs.com"
Cheers
David
OS - Slackware 15 64 bit
Apache OpenOffice 4.1.15
LibreOffice 24.2.2.2; SlackBuild for 24.2.2 by Eric Hameleers
David
OS - Slackware 15 64 bit
Apache OpenOffice 4.1.15
LibreOffice 24.2.2.2; SlackBuild for 24.2.2 by Eric Hameleers
Re: Convert email to URL?
(Not concerning the original question, but only the addendum.)
Recent versions of LibreOffice have the REGEX function which is useful with tasks of this kind.
See attached example. Note: The example will not work in AOO or old versions of LibO. It needs LibO V 6.2.y or higher.
See https://wiki.documentfoundation.org/Rel ... _functions
Recent versions of LibreOffice have the REGEX function which is useful with tasks of this kind.
See attached example. Note: The example will not work in AOO or old versions of LibO. It needs LibO V 6.2.y or higher.
See https://wiki.documentfoundation.org/Rel ... _functions
- Attachments
-
- splitByREGEXdemo.ods
- (8.91 KiB) Downloaded 96 times
On Windows 10: LibreOffice 24.2 (new numbering) and older versions, PortableOpenOffice 4.1.7 and older, StarOffice 5.2
---
Lupp from München
---
Lupp from München
Re: Convert email to URL?
See [Tutorial] How to record a macro (and Regular Expressions) for help on Regular Expressions which are used to manipulate text strings.
LO 6.4.4.2, Windows 10 Home 64 bit
See the Writer Guide, the Writer FAQ, the Writer Tutorials and Writer for students.
Remember: Always save your Writer files as .odt files. - see here for the many reasons why.
See the Writer Guide, the Writer FAQ, the Writer Tutorials and Writer for students.
Remember: Always save your Writer files as .odt files. - see here for the many reasons why.
-
- Posts: 17
- Joined: Fri May 13, 2016 1:11 pm
Re: [Solved] Convert email to URL?
Just gotta say thanks for all this, saving me a ton of time Really appreciate all your advice
OpenOffice 4.1.4 / MacOS 10.13.6 High Sierra