1. liaskas
  2. RO CSVI
  3. Thursday, 20 May 2021
  4.  Subscribe via email
Hello...

i am trying to create a replacement rule for the imported product_descriptions (hikashop)

1. can the rule replace phrases? For example... replace phrase "My name is Katerina" with "Katerina is my name"? When i replace a single word it works ok, but when i try to replace a phrase like the above it is not replaced.

2. I try to find and replace links. For example... replace different links like <a href="https://urls.com">Link Text</a> with Link Text. Is it possible and how?

Thank you
Accepted Answer Pending Moderation
Hello,
1. can the rule replace phrases? For example... replace phrase "My name is Katerina" with "Katerina is my name"? When i replace a single word it works ok, but when i try to replace a phrase like the above it is not replaced.

You did not share how your rule is setup now but Find and Replace using RO CSVI Multireplace rule like in the attached screenshot works for me.

2. I try to find and replace links. For example... replace different links like <a href="https://urls.com">Link Text</a> with Link Text. Is it possible and how?

It is possible using regular expressions. See attached screenshot using RO CSVI Multireplace rule. You need to use the below regex


/<a .*href="(.*?)".*>(.+)<\/a>/
Attachments (2)
Kind regards,

Tharuna

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. more than a month ago
  2. RO CSVI
  3. # 1
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!