Page 1 of 1

Catching web links

Posted: Wed Jul 03, 2019 11:47 pm
by Foregotten1
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

Re: Catching web links

Posted: Mon Feb 17, 2020 6:08 pm
by HSishi

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.

Re: Catching web links

Posted: Mon Mar 16, 2020 3:12 pm
by HSishi
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.

Re: Catching web links

Posted: Sat Jan 06, 2024 8:30 am
by HSishi
I had to further modify the trigger phrase because it was still catching stuff after the link:

Code: Select all

http(?<s1>.*)\:\/\/(?<s2>[^ ]*)
Clipboard text is then:

Code: Select all

http${s1}://${s2}