ReReplacer

Search
Other Bug Reports questions
Forum

ReReplacer

Marc's Avatar Marc
With the last release of ReReplacer day before yesterday (ie on 16 Nov 2022) the "treat as list" does not anymore

And precisely, in the changelog I see something related to "treat as list":
Fixes issue with spaces around searches/replacements being removed when using 'treat as list' option

I reverted to the previous version of ReReplacer and it solves the issue.

In case it helps identifying the bug, here is my practical implementation of ReReplacer with "treat as list" (one on each line):

Search:
/26-health-status,
/224-gezondheidstoestand,
/221-etat-de-sante,
/220-performance-du-systeme-de-sante-belge,
/223-performantie-van-het-belgische-gezondheidssysteem,
/28-medical-practice-variations,

Replace:
/health-status,
/gezondheidstoestand,
/etat-de-sante,
/performance-du-systeme-de-sante-belge,
/hspa-rapport,
/medical-practice-variations,
Peter van Westen's Avatar Peter van Westen ADMIN
You were actually (mis)using a bug in ReReplacer.
The items should be just comma-separated. Any whitespace (including enters) are part of the search.
aaa,
bbb
That should search for 'aaa' and for '
bbb'.

So in other words, you will need to change your search to:
/26-health-status,/224-gezondheidstoestand,/221-etat-de-sante,/220-performance-du-systeme-de-sante-belge,/223-performantie-van-het-belgische-gezondheidssysteem,/28-medical-practice-variations
And replace it with:
/health-status,/gezondheidstoestand,/etat-de-sante,/performance-du-systeme-de-sante-belge,/hspa-rapport,/medical-practice-variations
Please post a rating at the Joomla! Extensions Directory
Marc's Avatar Marc
oooooh, really annoying bc I have several hundreds of lines in that list
and having one on each line was pretty handy bc you can check "oh, this is line 287" both in Search and in Replace.

If I put everything on 1 line to "fix" this issue then if someone makes a typo somewhere (say at the 13rd item in the list)
- all the subsequent replacements will be offset
- and you can no more check the coherence (that you could do until 2 days ago when having line 287 vs line 287)
Peter van Westen's Avatar Peter van Westen ADMIN
I think it is pretty save for ReReplacer to ignore new lines after comma's in the lists.
The fix was mainly for stuff like:
a , b , c ,...
Which should only search for ' a ', ' b ', ' c ', etc.

Please try the latest development version from:
regularlabs.com/development-releases
Please post a rating at the Joomla! Extensions Directory
Marc's Avatar Marc
Works like a charm !
Txs a lot Peter !!!

(and actually, I really see why you chose to put "Regular (Expression)" in your Company name 😁 )
Peter van Westen's Avatar Peter van Westen ADMIN
Yup... I also put an Expression in my company... looks something like: 🤪
Please post a rating at the Joomla! Extensions Directory
You can only post on this forum if you log in