B
B
Boris Belov2016-11-23 22:22:42
Notepad++
Boris Belov, 2016-11-23 22:22:42

How to select only certain lines in Sublime or NotePad?

Suppose there is such a code (only it is more than 100 times)

<url>
  <loc>http://www.smartavi.com/</loc>
  <changefreq>always</changefreq>
</url>
<url>
  <loc>http://www.smartavi.com/blog</loc>
  <changefreq>always</changefreq>
</url>
<url>
  <loc>http://www.smartavi.com/static/digital_signage_faq.htm</loc>
  <changefreq>always</changefreq>
</url>

We need to select all the links inside
. I could select all but I don't know how. Maybe some of you know?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
iBird Rose, 2016-11-23
@iborisbelov

highlight the common part. for example "http://" through ctrl+D select all these common parts. then with the shift pressed, press the end key. without releasing the shift, you release from the selection < / loc > with the left arrow. well, actually everything.
ps it's in the sublime

G
Gran Torino, 2016-11-24
@adrin13

Well, or CRTL + F, turn on regular expressions and write or look for a suitable regular expression that will "mark" these very links

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question