Home » Forum
NoNumber!

Joomla!® Websites & Extensions
development  -  support  -  consultancy

I try to respond within 48 hours (excluding weekends).
If I haven't responded by then, feel free to post a reminder or bug me via email.

My last reply was: 3 Hours, 22 Minutes ago.

Welcome, Guest
Please Login or Register.    Lost Password?

Dont understand how works ReReplacer regex
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Dont understand how works ReReplacer regex
#7936
Dont understand how works ReReplacer regex 1 Year, 10 Months ago  
Hello,

im to stupid to understand regular expressions with ReReplacer.
I use regex at other software and php - works very well, but not with ReReplacer.

Example:
<!-- >>> Modules Anywhere >>> --><table border="0" style="color:#000;"><tr><td colspan="2">Keto-Life Ticker</td></tr><tr><td colspan="2" align="left"><img src="images/ticker/ticker_01.jpg" alt="Ticker 01" /><img src="images/ticker/point/sort_desc.png" alt="Zeiger 01" style="position:relative;top:3px;left:-108.67346938776px;"/></td></tr><tr><td>81.8</td><td style="text-align:right">72</td></tr><tr><td>74.49%.</td></tr></table><!-- <<< Modules Anywhere <<< -->


I want to delete or replace all chars between START and STOP.

OK, i go online to Online RegEx Tester
and use following mask:
<!--.>>>.Modules Anywhere.*?.Modules Anywhere.<<<.-->

this works very well, but not in ReReplacer (i tested 4 online regex testers, ALL works!)

In ReReplacer works:
Modules Anywhere.?*
but this removes not all but ALL other, im very confused...

Use ReReplacer an own syntax of regular expressions?

Please help.

Thanks!
Rene Stuhr
Posts: 5
User OfflineClick here to see the profile of this user
Last Edit: 2010/03/22 11:18 By peter.
The administrator has disabled public write access.
 
#7939
Re: Dont understand how works ReReplacer regex 1 Year, 10 Months ago  
Hm its my error! i dont see that my output is quoted like
<!-- is &lt;!--

This Pattern works now fine!
&lt;!--.&gt;&gt;&gt;.Modules Anywhere.*?.Modules.Anywhere.&lt;&lt;&lt; --&gt;

Thx for this again nice tool!
Rene Stuhr
Posts: 5
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
 
#7958
Re: Dont understand how works ReReplacer regex 1 Year, 10 Months ago  
PS: a dot matches any character. You should just use a space to match a space.
Peter van Westen
Admin
Posts: 9169
User Online NowClick here to see the profile of this user
The administrator has disabled public write access.
Need to contact me directly? Go to my contact page.
If you use any NoNumber! extensions, please post a rating and a review at the Joomla! Extensions Directory.
Are you happy with the support? Please consider buying a License Code to help me to continue development and support.
 
Go to topPage: 1
Moderators: Peter van Westen
hosting joomla
MaxCDN | Content Delivery Network | Accelerate your site to the max
Open Source Training | Online Joomla! Training and Support