Regular Labs home page
ReReplacer
Open site navigation
R
ReReplacer
Pricing
Downloads
Blog
Support Forum
Release Notes
Documentation
Documentation for
Joomla 3 version
of ReReplacer
Documentation for
Joomla 4 & 5 version
of ReReplacer
Search
the forum...
Type to search...
Other ReReplacer questions
Forum
replace 2 items
Roberto Robuffo
2 years 7 months ago
Roberto Robuffo
2 years 7 months ago
I have 2 items to replace
the first: "example"
the second: "beautiful example"
example become
<a href="
www.mywebsite.it/example.html
">example</a>
beautiful example become
<a href="
www.mywebsite.it/example.html
">beautiful example</a>
I need to insert in both items the same link exaple.html
how can I do it?
If I use two different elements first overwrite second
So I find two tags <a>
I need "replace example if isn't inside tag <a>" or something else...
Any tips?
Thank you
Peter van Westen
ADMIN
2 years 7 months ago
Peter van Westen
ADMIN
2 years 7 months ago
There are different ways you can go about this depending on the situation and usecase.
If enough, you could simply only replace "example" if it is not directly followed by a "<" character.
Using Regular Expressions:
(beautiful example|example)([^<])
Replace with:
<a href="...">\1</a>\2
Please post a rating at the
Joomla! Extensions Directory
Roberto Robuffo
2 years 7 months ago
Roberto Robuffo
2 years 7 months ago
Ok thank you for your reply
I have another situation
Sometimes the keyword is inside a panel component and all panel is linked
The Panel can contain this keyword
How can I don't set the link if there is a tag <a> as a parent
Peter van Westen
ADMIN
2 years 7 months ago
Peter van Westen
ADMIN
2 years 7 months ago
Difficult.
Easiest way is to just do the replacements regardless of parent links.
Then with a second replacement remove any nested links.
But the syntax depends very much on how fixed and known the HTML structure around it is.
Please post a rating at the
Joomla! Extensions Directory
Peter van Westen
ADMIN
2 years 7 months ago
Peter van Westen
ADMIN
2 years 7 months ago
For the second one you can also use the 'between' fields, to search for and remove links inside certain elements.
Please post a rating at the
Joomla! Extensions Directory
Roberto Robuffo
2 years 7 months ago
Roberto Robuffo
2 years 7 months ago
ok thanks for reply
for now I disabled the panel link...
😉
You can only post on the extension support forum if you have an active subscription and you
log in
Buy a Pro subscription
Close site navigation
R
ReReplacer
R
ReReplacer
Pricing
Downloads
Blog
Support Forum
Release Notes
Documentation
Documentation for
Joomla 3 version
of ReReplacer
Documentation for
Joomla 4 & 5 version
of ReReplacer
Log in
General stuff
Pricing
FAQs
Blog
Support Forum
Latest Releases
Development Releases
Help Translate
About
Contact
Extensions
AMM
Advanced Module Manager
AA
Articles Anywhere
AF
Articles Field
BFL
Better Frontend Link
CC
Cache Cleaner
CFJ
CDN for Joomla!
CC
Conditional Content
CT
Content Templater
DBR
DB Replacer
EP
Email Protector
EM
Extension Manager
GEO
GeoIP
IPL
IP Login
KS
Keyboard Shortcuts
M
Modals
MA
Modules Anywhere
QI
Quick Index
R
ReReplacer
S
Sliders
S
Snippets
S
Sourcerer
T
Tabs
T&A
Tabs & Accordions
T
Tooltips
What? Nothing!
Legal stuff
Terms & Conditions
Privacy Policy & Disclaimer
Username
Forgot your username?
Password
Forgot your password?
Log in
Register
previous
next
start slideshow