• Login
Community
  • Login

Delete unwanted characters

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
2 Posts 2 Posters 232 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.
  • Z
    Zara Arik
    last edited by May 27, 2020, 2:40 PM

    1 / Find The line does not contain the characters you want.
    2 / Delete the characters enclosed in quotation marks () in each line.
    For example :

        use of the (please.help.me@notepad.com) site ?
         Do not change these (help.me.please@anymail.com)!
        Hope you understand (myquestion@ok.com) alright ! 
    

    and results:

    Incorrect use of the site ?
      Do not change these !
     Hope you understand alright ! 
    

    3/ Clear the Question Mark in position 1 2 3 …, retain the Question mark in the last position. And vice versa want to keep? first, and delete all remaining Question marks in each line. For example :

      Do not ? change  ? these values if ? you do not know what ? that means! Incorrect use of the ? site may terminate your access ?
        Incorrect ? use of the ? site may terminate ??? your access! Do not ?? change these values if you ? do not know what that means ? 
       ? your access! ?? Do not ? site may terminate ??? your ? access! Incorrect ? use ? of the 
    

    and results :

    Don't change  these values if you do not know what that means! Incorrect use of the  site may terminate your access ?
        Incorrect  use of the ? site may terminate ??? your access! Do not change these values if you ? do not know what that means ? 
       Your access! Do not site may terminate your access! Incorrect use ? of the
    

    And vice versa the result is:

    Do not ? change these values if you do not know what that means! Incorrect use of the site may terminate your access 
        Incorrect ? use of the site may terminate your access! Do not change these values if you ? do not know what that means 
        ? your access! Do not  site may terminate your  access! Incorrect  use of the
    

    4/ I can apply the answers to question 1 and question 3 to the case. Is it an email address or an IP address, or is it a link?
    5 / Notepad ++ does it support automatically do this?

    01-01-1960, 01-02-1960, 01-03-1960, ..., 01-30-1960
      02-01-1960, 03-01-1960, 04-01-1960, ..., 12-01-1960
      02-02-1960, 02-03-1960, 02-04-1960, ..., 02-30-1960
      03-02-1960, 03-03-1960, 03-04-1960, ..., 03-30-1960
      04-02-1960, 04-03-1960, 04-04-1960, ..., 04-30-1961
      .................
      12-02-1960, 12-03-1960, 12-04-1960, ..., 12-30-1960
    

    It seems that using code and script to do this. I need results from 1960 to 2000. Maybe Excel can do it. But because I do not like using Office tools.

    E 1 Reply Last reply May 28, 2020, 1:14 PM Reply Quote 0
    • E
      Ekopalypse @Zara Arik
      last edited by May 28, 2020, 1:14 PM

      @Zara-Arik

      First of all thanks for the examples.
      We can see that you have made an effort to explain your goals.
      Unfortunately, at least for me, the explanations are confusing, so I don’t really understand what you want to do.
      Obviously, like me, English is not your first language, so I would recommend that you use an Online Translator to help you.
      Please note, the better/precise the question in your mother tongue is set, the better the translation will be.

      To the questions:

      1. Use the find dialog, go to the Mark Tab and mark the hits, optionally set bookmarks for each line

      2. Probably a regex search for \(.+?\) could provide this.

      3. How do you know if a sentence begins or ends. For this you actually need an AI that was really programmed for it and even this one won’t work 100%

      4. and 5. I do not understand.

      Translated with www.DeepL.com/Translator (free version)

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