B
B
Baxterok2014-06-01 02:16:16
Notepad++
Baxterok, 2014-06-01 02:16:16

How to remove folders from a link?

There is a sql file. It is necessary with the help of a replacement to shorten links (of which there are many in sql).
Example:
site.ru/images/folder1/img1.jpg
site.ru/images/folder2/img2.jpg
...
site.ru/images/foldern/imgn.jpg Required
:
img1.jpg
img2.jpg
....
imgn.jpg
There are Sublime Text, Notepad++, Notepad. How to make such a removal with the help of these editors? Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
Baxterok, 2014-06-01
@Baxterok

Actually, as always. After sending the message, the answer comes by itself.
If you have the same problem as me, then search Google for "regular expressions" and the name of your editor. You will be given all the information on how to search extensively in your editor.
For example, in Sublime Text, to solve the problem described above, you need to write: site.ru/images/.+/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question