How to find matching in select area?


I select some text area. I would find expression in the area. How did it?


So you want to search for a specific expression inside your selection?


for example
11. <p>Lorem ipsum</p>
12. <p>Lorem ipsum</p>
13. <p>Lorem <a href="#">ipsum</a></p>
14. <h2>HEADER</h2>
15. <ul class="nav">
16. <li><a href="main.php">HOME</a></li>
19. <li><a href="news.php">NEWS</a></li>
17. <li><a href="products.php">PRODUCTS</a></li>
18. <li><a href="about.php">ABOUT US</a></li>
20. <li><a href="contact.php">CONTACTS</a></li>
21. </li>
22. <div class="info-block-1">
23. <h3>Header 3</h3>
24. <p>Lorem ipsum dolor sit amet.</p>
25. <p>consectetuer adipiscing <a href="#>elit.</a></p>
26. </div>
27. <div class="info-block-2">
28. <h3>Header 3</h3>
29. <p>Lorem ipsum dolor sit amet.</p>
I select fragment of file line 15 to 26. Need get "<a ....>...</a>". I don’t wanna parse all text in the file


Just use the find-and-replace feature.


this is exactly what i need… Sorry. How i can assign hot key for 'find-and-replace only-in-selection' in keymap.cson


There is no such command in the find-and-replace package. You would have to write the command yourself.