Results 1 to 5 of 5
-
25th Sep 2011, 02:08 AM #1OPψ(`∇?)ψ
Need regex search expression
I f*cked up few hundreds post in my blog, with search and replace, and now I have dupe terms, which I can't replace with simple search, I need to use regex search and replace to find exact matches.
If anyone could help me, I need this text:
Code:[/stextbox] <strong>
cvrle77 Reviewed by cvrle77 on . Need regex search expression I f*cked up few hundreds post in my blog, with search and replace, and now I have dupe terms, which I can't replace with simple search, I need to use regex search and replace to find exact matches. If anyone could help me, I need this text: <strong> as a search regex Rating: 5
-
25th Sep 2011, 08:34 AM #2MemberWebsite's:
wscripts.net damnlolscript.com lulzjet.compreg_replace("~\[/stextbox\]\s<strong>~","",$post)
-
25th Sep 2011, 08:40 AM #3Respected MemberWebsite's:
DL4Everything.com Soft2050.inIf there is new line then regex will be:
PHP Code:\[\/stextbox\]\n\<strong\>
PHP Code:preg_replace('/\[\/stextbox\]\n\<strong\>/i, "", $mystring);
-
25th Sep 2011, 08:41 AM #4OPψ(`∇?)ψ
Wooohooo, thanks man, actually, for what I've used, your full line didn't worked, even though, If I understood correctly the manual from that plugin, it should. However, with 20 seconds of experimenting, I got this:
(\[/stextbox\]\s<strong>)
and it worked
Now I figured, hope so, how it works
Thanks again
EDIT: funny, both \n and \s are giving me the same results... :/
Thanks both, will experiment before applying
-
25th Sep 2011, 08:53 AM #5Respected MemberWebsite's:
DL4Everything.com Soft2050.in\n is for matching a Line Feed and \s is for whitespace
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Need help with RegEx
By dima1236 in forum Web Development AreaReplies: 7Last Post: 14th Jan 2012, 05:53 PM -
How to remove CSS Expression?
By Rox in forum Web Development AreaReplies: 21Last Post: 6th Jan 2012, 03:58 PM -
Php Regular Expression ?
By warezrock in forum Web Development AreaReplies: 1Last Post: 6th Jul 2011, 03:56 PM -
Help with Regex
By ChaoscripT in forum Web Development AreaReplies: 2Last Post: 15th Dec 2010, 09:26 PM -
[Selling] Expression XenForo Theme - $20.00 - SleekVb.Net
By GCSkye in forum Completed TransactionsReplies: 0Last Post: 12th Nov 2010, 02:25 AM
themaCreator - create posts from...
Version 3.47 released. Open older version (or...