Search
Other ReReplacer questions
Forum

Multiple Replacement with regular expressions result

Rocholz Gerold's Avatar Rocholz Gerold
Hi Peter,

i use rereplacer 7.1.1 PRO and Joomla 3.6

i try to find several positions of pattern with regex. regex is ok and find all 5 positions in html output but only the last occurence of search result will be replaced. The other 4 occurences leave without change. What do i have to do, that all occurences will be replaced ?

search regex: <a\s+href[^>]*>(.*?)Spiellokal SV1930(.*?)<\/a>
replace regex: <a href=" goo.gl/maps/2yyAq1eJwwV8tFov7 " target="_blank">Spiellokal SV1930</a>

Thanks Peter

Gerold
Rocholz Gerold's Avatar Rocholz Gerold
Hi Peter,

the solution to my problem was to enlarge the scope of searching from "BODY" to "EVERYWHERE" - then regex search and replace worked fine and replaced all occurences....

Thx, Gerold
You can only post on the extension support forum if you have an active subscription and you log in

Buy a Pro subscription