I have several html files which image files save to a folder with the same name as the html file. (Save page as)
I want to move all my files to one folder.
How do I do a bulk search for unique paths and move to image directory?
Before
aaa/thisimage.jpg
bbb/anotherimage.jpg
abc/andanotherimage.jpg
After
images/thisimage.jpg
images/anotherimage.jpg
images/andanotherimage.jpg
Thanks
How to change the path for all image files
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
-
- Posts: 2461
- Joined: Sun Mar 02, 2003 9:22 pm
You haven't told us how to identify the part of the path to be replaced. Do either of these worK?
Find what: [a-z0-9._-]+/([a-z0-9._-]+\.jpg)
Replace with: images/\1
[X] Regular expression
These assume you are using Posix regular expression syntax:Find what: (aaa|bbb|abc)/([a-z0-9._-]+\.jpg)
Replace with: images/\2
[X] Regular expression
Configure | Preferences | Editor
[X] Use POSIX regular expression syntax
-
- Posts: 2461
- Joined: Sun Mar 02, 2003 9:22 pm