/    Sign up×
Community /Pin to ProfileBookmark

GoLive Regex Link Replacement

I’m about to switch my hosting platform from Windows to Linux, and to combat the case-sensitivity, I’m going to try and run a Find/Replace in Adobe GoLive CS2 with regular expressions to make all links lowercase. I’ve already made all the file names lowercase on the server, but finding and checking every single link in the code by hand doesn’t sound like fun. Here’s my code for GoLive’s Find and Replace option.

FIND[CODE](href=|src=)(“|’)([^“‘]+)(“|’)[/CODE]
REPLACE

[CODE]L1234E[/CODE]

Now I realize this probably isn’t the most efficient way of doing it, but I’ve built it slowly and tested it as I went, making sure that ONLY links in the code (i.e. “<a href=”[COLOR=”Green”]http://www.google.com[/COLOR]“>”) are replaced with their lowercase equivalents. The find part works perfectly. The problem is, the L and E parts of the replace string don’t seem to work. Every syntax I’ve found for converting a string to lowercase doesn’t seem to work in GoLive… can anyone advise me on how to replace my matched string with itself all lowercase?

to post a comment
Full-stack Developer

0Be the first to comment 😎

×

Success!

Help @dz_boy spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...