• Login
Community
  • Login

Find a word with a specific number on Netpad Plus

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
6 Posts 2 Posters 315 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.
  • D
    diana parker
    last edited by Nov 18, 2020, 1:27 PM

    hi guys , I have a long list that I want to find in this list of words with the number 123

    example my list

    Admin1
    sara123
    123admin
    paris1234
    hello123
    123

    my Result list

    sara123
    hello123

    just splite word+123 not example paris1234 or 123admin in my list Result how find (word+123) thanks sorry my english bad

    E 1 Reply Last reply Nov 18, 2020, 1:49 PM Reply Quote 0
    • E
      Ekopalypse @diana parker
      last edited by Nov 18, 2020, 1:49 PM

      maybe a regex like \w+123\b will do what you want?

      1 Reply Last reply Reply Quote 1
      • D
        diana parker
        last edited by Nov 18, 2020, 2:02 PM

        @Ekopalypse said in Find a word with a specific number on Netpad Plus:

        \w+123\b

        thats ok but in my list word abc123… or admin123! is in resualt how find only word with 123 without symbol next 123 what add to your code for only word+123 resualt complate ?

        E 1 Reply Last reply Nov 18, 2020, 2:05 PM Reply Quote 0
        • E
          Ekopalypse @diana parker
          last edited by Nov 18, 2020, 2:05 PM

          This post is deleted!
          1 Reply Last reply Reply Quote 0
          • E
            Ekopalypse
            last edited by Nov 18, 2020, 2:10 PM

            Maybe this one is better \w+123(?=\R|\h|\Z)

            1 Reply Last reply Reply Quote 1
            • D
              diana parker
              last edited by Nov 18, 2020, 3:11 PM

              @Ekopalypse said in Find a word with a specific number on Netpad Plus:

              \w+123(?=\R|\h|\Z)

              thanks this beter

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