Community
    • Login

    Regex: Mix-Numbers / Cross-numbers

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    1 Posts 1 Posters 1.3k Views 1 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.
    • Vasile CarausV Offline
      Vasile Caraus
      last edited by Vasile Caraus

      hello, I need a regex to mix numbers on different lines and columns. So, I try to use the regex that guy38 used to mix words on other topic: https://notepad-plus-plus.org/community/topic/12322/regex-crossword-maker-mix-words

      For example this .txt files with numbers:

      15 34 39 42 43 48
      36 5 13 9 6 17
      2 18 20 34 32 3
      10 29 18 2 39 44

      So, this is guy38 regex for mix words:

      SEARCH : ([\w-]+)[^\w\r\n-]+([\w-]+)[^\w\r\n-]+([\w-]+)[^\w\r\n-]+([\w-]+)[^\w\r\n-]+([\w-]+)[^\w\r\n-]+([\w-]+)[^\w\r\n-]+([\w-]+)

      REPLACE : \3 \1 \7 \5 \4 \2 \6

      Now, I try wo change a little bit his search part, instead of \w I will try to use \d :

      ([\d-]+)[^\d\r\n-]+([\d-]+)[^\d\r\n-]+([\d-]+)[^\d\r\n-]+([\d-]+)[^\d\r\n-]+([\d-]+)[^\d\r\n-]+([\d-]+)[^\d\r\n-]+([\d-]+)

      It doesn’t work. Anyone?

      1 Reply Last reply Reply Quote 0

      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