Community
    • Login

    I have a scrambled text with many codes with 8 numbers each, started with 403. How to extract only these codes from the text?

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    2 Posts 2 Posters 288 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.
    • greg gregG
      greg greg
      last edited by

      There is no more than 1 of these codes per line. If I were able to manage to keep the whole line of text in which this code is in, it would be even better but its not needed.

      I guess something that would delete every line without such code would be enough.

      PeterJonesP 1 Reply Last reply Reply Quote 0
      • PeterJonesP
        PeterJones @greg greg
        last edited by PeterJones

        @greg-greg

        If you want help with a search/replace problem, you need to give us more to go on than that. Best practice is to include a half-dozen to a couple-dozen lines of example “before” and “after” text (using the </> button to put them in text boxes) – make sure if there’s sensitive/confidential info that you use dummy data that looks like the original (formatted the same, same combos of numbers vs letters, etc) but doesn’t reveal your secrets. Also make sure that your examples show some things that should match and some that don’t.

        See the Template for Search/Replace Questions, linked below, for more of how to ask such questions.

        ----

        Useful References

        • Please Read Before Posting
        • Template for Search/Replace Questions
        • Formatting Forum Posts
        • Notepad++ Online User Manual: Searching/Regex
        • FAQ: Where to find other regular expressions (regex) documentation
        1 Reply Last reply Reply Quote 3
        • First post
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors