Page 1 of 1

Search and replace a series of years using wildcards

Posted: 19 Jan 2019 14:22
by Lawrence Michael
I have a quick question about the syntax for wildcards in XyPlorer's "Search and replace" function. I am attempting to remove a series of dates that are in many, many files all in one pass. I have tried using wildcards and just can't seem to get it to work. The syntax that I'm using is:

(197?)/
I've also tried
(197*)/

But "<Unchanged>" is the only message that is displayed in the preview.
zzzzzzzzzzz.jpg

Re: Search and replace a series of years using wildcards

Posted: 19 Jan 2019 14:49
by highend
That search and replace operation doesn't support * or ? as wildcards,
you could use the regexp rename operation instead with e.g.:

Code: Select all

 \(\d+\) > 
or

Code: Select all

 \(\d{4}\) > 
if you want to be sure that only 4-digit date parts are removed

Make sure you don't miss the spaces in the code tags (best way is to use the: "CODE: SELECT ALL" link above it)!

Re: Search and replace a series of years using wildcards

Posted: 25 Jan 2019 16:25
by Lawrence Michael
Thank you very much, RegExp replace is exactly what I needed.

Appreciate the help!