问题
I have the following link in excel:
http://en.wikipedia.org/wiki/Melon_Bicycles
I would like to retrieve the link as: http://en.wikipedia.org
In google doc I used: =REGEXEXTRACT(A1; "https?:\/\/(.[^\/]+)")
, whereas A1 is the cell with the unformated link.
Any recommendation how to implement that in excel 2010?
回答1:
A simple approach would be to use LEFT
with FIND
. Something like this
=LEFT(A1,FIND("/",A1,9))

来源:https://stackoverflow.com/questions/28832479/regex-link-formatting