You need to be logged in to post in the forum - Log In
An active JCE Pro Subscription is required to post in the forum - Buy a Subscription
- Support
- Forum
- JCE Editor
- regex : change all "text links" of an article by "blabla" or whatever
Support is currently Online
Official support hours:
Monday To Friday
From 09:00 To 17:00 Europe/London (BST)
From 09:00 To 17:00 Europe/London (BST)
Hi,
I wanted to use the regex functionality of JCE to make a search/replace.
The goal is to change all the "link texts" of hyperlinks by some other text (in my example by "click here") :
On any regex tool the following would work :
replace
by
But JCE does not take placeholders ($1, ...).
So how can I do in JCE for what I thought to be a "simple" remplacement?
Txs!
Marc
I wanted to use the regex functionality of JCE to make a search/replace.
The goal is to change all the "link texts" of hyperlinks by some other text (in my example by "click here") :
<a href="/url1">link text</a>
<a href="/ur2l">another</a>
<a href="/url3">yet another</a>
On any regex tool the following would work :
replace
(\<a[^>]*>)(?<url_text>[^>]*)(<\/a>)
by
$1 here $3
But JCE does not take placeholders ($1, ...).
So how can I do in JCE for what I thought to be a "simple" remplacement?
Txs!
Marc
Please try JCE Pro 2.9.17 Beta - https://www.joomlacontenteditor.net/downloads/editor/pro/development
Clear your browser cache after install.
Clear your browser cache after install.
Just because you're not paranoid doesn't mean everybody isn't out to get you.
Please try JCE Pro 2.9.17 Beta - https://www.joomlacontenteditor.net/downloads/editor/pro/development
Clear your browser cache after install.
Clear your browser cache after install.
Just because you're not paranoid doesn't mean everybody isn't out to get you.
Hi Ryan,
Excellent, this works just fine now
Txs a lllot for this.
I have published the tip on the Joomla forum on which I am most active:
https://forum.joomla.fr/forum/joomla-3-x/questions--g%C3%A9n%C3%A9rales/2031858-expressions-r%C3%A9guli%C3%A8res-regex-dans-l-%C3%A9diteur-jce
Excellent, this works just fine now
Txs a lllot for this.
I have published the tip on the Joomla forum on which I am most active:
https://forum.joomla.fr/forum/joomla-3-x/questions--g%C3%A9n%C3%A9rales/2031858-expressions-r%C3%A9guli%C3%A8res-regex-dans-l-%C3%A9diteur-jce
- Page :
- 1
There are no replies made for this post yet.
Be one of the first to reply to this post!
Be one of the first to reply to this post!