Notepad++ Multi editing

前端 未结 9 1469
一向
一向 2020-12-12 13:09

How can I have multiple cursors in Notepad++?

I will have a couple of tab delimited values . I need to write a query for all of these values. For example, if I get a

9条回答
  •  青春惊慌失措
    2020-12-12 13:52

    Notepad++ has a powerful regex engine, capable to search and replace patterns at will.

    In your scenario:

    1. Click the menu item Search\Replace...

    2. Fill the 'Find what' field with the search pattern:

      ^(\d{4})\s+(\w{3})\s+(\w{3})$
      
    3. Fill the replace pattern:

      Insert into tbl (\1, \2) where clm = \3
      
    4. Click the Replace All button.

    And that's it.

    NotePad++ replace window screenshot

提交回复
热议问题