I have a list of URLs

15 views
Skip to first unread message

Lee Smith

unread,
Feb 21, 2018, 5:55:32 PM2/21/18
to textwr...@googlegroups.com

Jean-Christophe Helary

unread,
Feb 21, 2018, 9:34:19 PM2/21/18
to textwr...@googlegroups.com
> On 2018/02/22, at 7:55, Lee Smith <lees...@wavecable.com> wrote:
>
> I’m having trouble setting up a grep pattern for extracting the site names from a list of URLs.
>
Don't forget that this list will be closed soon. You have to move to the BBEdit list.

search for:
https?://([^/]*)/.*

replace with:
\1

Text > Sort lines
Text > Process duplicate lines

et voilà


Jean-Christophe Helary
-----------------------------------------------
http://mac4translators.blogspot.com @brandelune

Lee Smith

unread,
Feb 21, 2018, 10:08:41 PM2/21/18
to textwr...@googlegroups.com
Thank you Jean-Christophe, it worked like a charm.

On Feb 21, 2018, at 6:34 PM, Jean-Christophe Helary <jean.christ...@gmail.com> wrote:

search for:
https?://([^/]*)/.*

replace with:
\1

Text > Sort lines
Text > Process duplicate lines

et voilà

.
Jean-Christophe Helary

Lee

Jean-Christophe Helary

unread,
Feb 22, 2018, 12:10:15 AM2/22/18
to textwr...@googlegroups.com


> On 2018/02/22, at 12:08, Lee Smith <leew...@gmail.com> wrote:
>
> Thank you Jean-Christophe, it worked like a charm.

Lee,

If there is anything you do not understand in the regular expression part of the manual, you should ask. Once you know the basics (which is pretty much what I used) you'll be able to do a huge lot yourself.
Reply all
Reply to author
Forward
0 new messages