Regex: Mix-Numbers / Cross-numbers
-
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 44So, 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?