• Login
Community
  • Login

Help about text find and replace

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
3 Posts 2 Posters 225 Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M
    Matteo Salviato
    last edited by Matteo Salviato Oct 18, 2020, 9:09 AM Oct 18, 2020, 9:08 AM

    Hi Guys,
    My name is Matteo nd , if is possible I need your help !!
    I need to change all the lines like this “txt”: “AGUAAAA”, with this thext “txt”: “”,. the word Aguaaaa could be different for every line… could you help me?
    thanks in advance

    1 Reply Last reply Reply Quote 0
    • G
      guy038
      last edited by guy038 Oct 18, 2020, 10:27 AM Oct 18, 2020, 10:26 AM

      Hello @matteo-salviato and All,

      Very easy with regular expressions !

      I supposed that your text contents usual double quotes " and not the Unicode chars “ and ” !

      Then :

      • Open the Replace dialog ( Ctrl + H )

      • SEARCH (?-si)"txt":\x20"(.+?)"

      • REPLACE "txt":\x20""

      • Tick the Wrap around option, preferably

      • Select the Regular expression search mode

      • Click on the Replace All button

      Best Regards,

      guy038

      1 Reply Last reply Reply Quote 1
      • M
        Matteo Salviato
        last edited by Oct 18, 2020, 1:50 PM

        @guy038 said in Help about text find and replace:

        Open the Replace dialog ( Ctrl + H )

        SEARCH (?-si)“txt”:\x20"(.+?)"

        REPLACE “txt”:\x20""

        Tick the Wrap around option, preferably

        Select the Regular expression search mode

        Click on the Replace All button

        Thanks a lot!!! it works very well!!!

        1 Reply Last reply Reply Quote 1
        2 out of 3
        • First post
          2/3
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors