Hello, it’s so nice to see Cobian again alive - I must have used it under Win XP. Thanks for your work.
My problem :
* Win 10 64 bits
* I tried to filter files with a regular expression [0-9]{2,4}x[0-9]{2,4}\.jpg$
I use WordPress and WordPress generates a lot of thumbnails for a image.jpg
All the thumbnails are named like image-1200x993.jpg and I don’t want these thumbnails to be saved. But Reflector did not filter them correctly. The regular expression had been tested on another backup software and it worked.
[solved] filter regular expression does not work as intended
[solved] filter regular expression does not work as intended
Last edited by mister00 on 09 Dec 2021, 12:05, edited 1 time in total.
Re: filtre regular expression does not work as intended
This is a little overcomplicating the task. I would use a mask
image-*.jpg
But yes, I will review this expression
image-*.jpg
But yes, I will review this expression
--
Luis Cobian
Cobian Backup's creator
Luis Cobian
Cobian Backup's creator
Re: filtre regular expression does not work as intended
Sorry I may be not clear enough : I need to backup image.jpg but not image-1200x993.jpg
Re: filtre regular expression does not work as intended
Hello Mister00,
May I suggest you try with ^image-[0-9]{2,4}x[0-9]{2,4}\.jpg$ to test whether there is a problem with the interpretation of the regular expression ?
May I suggest you try with ^image-[0-9]{2,4}x[0-9]{2,4}\.jpg$ to test whether there is a problem with the interpretation of the regular expression ?
Gabriel
Re: filtre regular expression does not work as intended
Yes, I also think that the original expression is not to exact
--
Luis Cobian
Cobian Backup's creator
Luis Cobian
Cobian Backup's creator
Re: filtre regular expression does not work as intended
The expression image-[0-9]{2,4}x[0-9]{2,4}\.jpg$ does work. .*-[0-9]{2,4}x[0-9]{2,4}\.jpg$ does it as well.
--
Luis Cobian
Cobian Backup's creator
Luis Cobian
Cobian Backup's creator
Re: filtre regular expression does not work as intended
Thanks a lot. I’m not good at all in regular expression, and it seemed to work on testing sites. It’s good now. Sorry for late answer, I don’t receive notification emails