Search and replace a series of years using wildcards

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
Lawrence Michael
Posts: 2
Joined: 19 Jan 2019 14:12

Search and replace a series of years using wildcards

Post 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
zzzzzzzzzzz.jpg (132.28 KiB) Viewed 330 times

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: Search and replace a series of years using wildcards

Post 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)!
One of my scripts helped you out? Please donate via Paypal

Lawrence Michael
Posts: 2
Joined: 19 Jan 2019 14:12

Re: Search and replace a series of years using wildcards

Post by Lawrence Michael »

Thank you very much, RegExp replace is exactly what I needed.

Appreciate the help!

Post Reply