Community
    • Login

    Regex: Mix-Numbers / Cross-numbers

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    1 Posts 1 Posters 1.1k 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.
    • Vasile CarausV
      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
      • First post
        Last post
      The Community of users of the Notepad++ text editor.
      Powered by NodeBB | Contributors