• Login
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.
  • V
    Vasile Caraus
    last edited by Vasile Caraus Jan 13, 2017, 11:53 AM Jan 13, 2017, 11:51 AM

    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
    1 out of 1
    • First post
      1/1
      Last post
    The Community of users of the Notepad++ text editor.
    Powered by NodeBB | Contributors