Title

Message

Confirm

<< DiscussionsReply

Trigger URL modification with regex

pauler's profile on WallpaperFusion.com
So I want this to happen automatically when I copy a list of or individual links with specific text. Specifically, I want to switch out a domain url for another. I wish this:
https://d3ts7pb9ldoin4.cloudfront.net

to become this:
https://star-uploads.s3-us-west-2.amazonaws.com


Realizing there's additional info contained within the URL, my regex for the trigger looks like this:
Regex:
^(https://)d3ts7pb9ldoin4.cloudfront.net(.+)(-740x0)(\.jpg)

Replacement:
\1star-uploads.s3-us-west-2.amazonaws.com\2\4


No matter what I do, I can't get it to work inside clipboard fusion.

I'd appreciate any help. The regex works fine in my other programs.
Apr 17, 2021 (modified Apr 17, 2021)  • #1
pauler's profile on WallpaperFusion.com
Well, this isn't looking very hopeful. Is there a way to directly contact the devs?
Apr 19, 2021  • #2
Owen Muhlethaler (BFS)'s profile on WallpaperFusion.com
Hello,

Could you send me over a screenshot of your trigger settings, along with a sample URL?

Thanks!
Apr 20, 2021  • #3
BradS17601
1 discussion post
I'm trying ClipboardFusion for the first time so this might not be helpful.
But...
I think the The \1\2\3\4 syntax for backreferences in the replacement text is not supported but the $1$2$3$4 is supported when one sets the "Text Match Mode" in the Text Replace dialog to "Regular Expression"
Dec 20, 2021  • #4
pauler's profile on WallpaperFusion.com
Quote:
I'm trying ClipboardFusion for the first time so this might not be helpful.
But...
I think the The \1\2\3\4 syntax for backreferences in the replacement text is not supported but the $1$2$3$4 is supported when one sets the "Text Match Mode" in the Text Replace dialog to "Regular Expression"


Thanks for that. I just came back here to look for some info, and this is what pointed me to use .net compatible c# regex. All working the way I want in the triggers.

Thanks!
Feb 11, 2022  • #5
Was this helpful?  (1)  
<< DiscussionsReply