View Single Post
Old 06-09-2016, 08:11 AM  
sarettah
see you later, I'm gone
 
Industry Role:
Join Date: Oct 2002
Posts: 14,057
Quote:
Originally Posted by klinton View Post
there is one wordpress plugin called "search regex" which is handful for me.
yesterday I used it to bulk modify all posts that contained some url like url.com/variablehere to steadyurl.com
I did it using some PHP magic delimiter like
Code:
/<a [^>]+>/i
which basically searched for all urls in posts, marked them and changed them to my new url, specified before in the plugin field "replace with"...

now, my queston is: what would be PHP delimiter to mark whole text in that plugin and later modify it with adding just
Code:
<a href="http://www.myurl.com">
at the beginning.

is it even possible ?

I prefer to use that plugin instead of php my admin somehow, it has safe option like just "search" "search and replace without saving" and so on
I don't know anything about that plugin, sorry about that. However the regex expression to match everything should be .* (dot and asterick).

.
__________________
All cookies cleared!
sarettah is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote