Delete unwanted characters



  • 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.



  • @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)


Log in to reply