Catching web links

Post Reply
Foregotten1
Posts: 4
Joined: Tue May 01, 2018 11:57 pm

Catching web links

Post by Foregotten1 » Wed Jul 03, 2019 11:47 pm

I have

Code: Select all

https://www.{s1}
to catch web links. It works for most websites, but it adds an apostrophe to the end of every web address because EQ adds it to the beginning and end of every message. I've tried several things, but can't get rid of that apostrophe. I've looked into regex and found

Code: Select all

[^']
will ignore the apostrophe, but I'm not sure how to implement that. Anyone have any thoughts and specific instructions? :D

HSishi
Posts: 49
Joined: Sun Aug 26, 2012 3:19 pm

Re: Catching web links

Post by HSishi » Mon Feb 17, 2020 6:08 pm

Code: Select all

http{S1}\:\/\/{S2}\'
In "Copy to Clipboard" line use

Code: Select all

http{S1}://{S2}
With that, you catch all http and https links - unless they contain an apostrophe. Which I didn't see yet.

HSishi
Posts: 49
Joined: Sun Aug 26, 2012 3:19 pm

Re: Catching web links

Post by HSishi » Mon Mar 16, 2020 3:12 pm

Yesterday I found out the trigger I gave above has some sort of bug - it catches added text after the link too.

Use

Code: Select all

http{S1}\:\/\/{S2}(\'| )
to stop at the end line characters (here the apostroph used in EQ) and before any space after which text might follow.

The "Copy to Clipboard" I wrote is still valid.

Post Reply