Adam Howard
Well-known member
It's been a while since I've needed to do this, so I've actually forgotten how. lol
In order to make this quicker, I'm trying to remember how to do a partial string replacement, with the combination of a wild-card that needs to remain unchanged.
It's for an add-on that I'd like to update quickly, the table is xf_mood
What I have is a bunch of entries like so
styles/default/xenmoods/Angelic.png
styles/default/xenmoods/Sick.png
styles/default/xenmoods/Sad.png
I need to change
styles/default/xenmoods/
to
http://cdn.sociallyuncensored.com/styles/default/xenmoods/
While still keeping the ending images unchanged.
So the end result after running the command would be changing these
styles/default/xenmoods/Angelic.png
styles/default/xenmoods/Sick.png
styles/default/xenmoods/Sad.png
to this
http://cdn.sociallyuncensored.com/styles/default/xenmoods/Angelic.png
http://cdn.sociallyuncensored.com/styles/default/xenmoods/Sick.png
http://cdn.sociallyuncensored.com/styles/default/xenmoods/Sad.png
It's been a while since I've done this and I'm trying to remember how to do only a partial replacement string, with an unchanged wild card.
In order to make this quicker, I'm trying to remember how to do a partial string replacement, with the combination of a wild-card that needs to remain unchanged.
It's for an add-on that I'd like to update quickly, the table is xf_mood
What I have is a bunch of entries like so
styles/default/xenmoods/Angelic.png
styles/default/xenmoods/Sick.png
styles/default/xenmoods/Sad.png
I need to change
styles/default/xenmoods/
to
http://cdn.sociallyuncensored.com/styles/default/xenmoods/
While still keeping the ending images unchanged.
So the end result after running the command would be changing these
styles/default/xenmoods/Angelic.png
styles/default/xenmoods/Sick.png
styles/default/xenmoods/Sad.png
to this
http://cdn.sociallyuncensored.com/styles/default/xenmoods/Angelic.png
http://cdn.sociallyuncensored.com/styles/default/xenmoods/Sick.png
http://cdn.sociallyuncensored.com/styles/default/xenmoods/Sad.png
It's been a while since I've done this and I'm trying to remember how to do only a partial replacement string, with an unchanged wild card.