Community
    • Login

    Regex Help Please

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    2 Posts 2 Posters 502 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.
    • Phat Huynh 0P
      Phat Huynh 0
      last edited by

      Hi everyone,

      I have a large file with many of what is highlighted that I would like to remove. Is there a way to do it with Notepad++ and Regex? Thank you in advance.

      remove_chars.png

      1 Reply Last reply Reply Quote 0
      • Mark OlsonM
        Mark Olson
        last edited by

        @Phat-Huynh-0

        In the future, please read this FAQ and use literal blocks of text wrapped in ``` to show your text rather than pasting images.

        It is not clear what you want to remove at the end of the line, but if you want to remove everything before CUSTOMER REFERENCE NUMBER: on lines with that text, you can use Search->Replace... to open the find/replace form, check Wrap Around, set Search Mode to Regular expressions, set Find what: to (?-si).*(?=CUSTOMER REFERENCE NUMBER:), leave Replace With: empty, and hit the Replace All button.

        Here is the standard documentation for regex in Notepad++.

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