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 930 Views 2 Watching
    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 Offline
      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 Online
        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

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • First post
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors