Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Sed debug annotation
SED PROGRAM:
x
z
x
:x
s/$/%;%90123456789/
:y
s/(.)%((%?.)*\\1)|;.*/\3\2/
t y
/\n/ b z
s/^0*//
N
:z
/\n0+$/! {
x
N
x
b x
}
s/(.*)\n.*/,\1;/
x
s/^\n//
s/(\n|$)/%&/g
s/(^|\n)/:/g
:a
/[0-9]%/ {
s/ %/ 0%/g
s/^/0@1@2@3@4@5@6@7@8@9@#/
:b
s/([0-9])@([^#]*#.*)(:[^:]*)\\1%([^:]*)/\1@\3%\1\4\2/
t b
s/.@|#//g
b a
}
s/%0*([0-9])/\1/g
/;/ b e
s/^/:0 0:,0;/
:c
:d
s/(,([0-9]*);.*:)(_?[0-9]* )?\\2 ([^:]*)/\1_\2 \3\4/
t d
/\n/ b f
s/:_[0-9]* _[^:]*//g
s/(^[^;]*)(;[^_]*)(:_[0-9]* ([0-9]*)[^:]*)/\3\1,\4\2/
s/^:_([0-9]*) ([^:,]*)([^;]*)(:\\1 [0-9]*)/:_\2%\4%\3/
b a
:e
/^:_/ s/^(:_[0-9]* )[^:]*(:[0-9]* ([0-9]*))/\1\3\2/
s/:_(.*;)/:\1/
s/%//g
t c
s/_|,.*//g
x
G
b d
:f
s/.*:_[^ ] ([0-9]*).*/\1/
t g
s/.*//
:g
INPUT: 'STDIN' line 1
PATTERN: 4
COMMAND: x
PATTERN:
HOLD: 4
COMMAND: z
PATTERN:
COMMAND: x
PATTERN: 4
HOLD:
COMMAND: :x
COMMAND: s/$/%;%90123456789/
MATCHED REGEX REGISTERS
regex[0] = 1-1 ''
PATTERN: 4%;%90123456789
COMMAND: :y
COMMAND: s/(.)%((%?.)*\\1)|;.*/\3\2/
MATCHED REGEX REGISTERS
regex[0] = 0-10 '4%;%901234'
regex[1] = 0-1 '4'
regex[2] = 2-10 ';%901234'
regex[3] = 8-9 '3'
PATTERN: 3;%90123456789
COMMAND: t y
COMMAND: :y
COMMAND: s/(.)%((%?.)*\\1)|;.*/\3\2/
MATCHED REGEX REGISTERS
regex[0] = 1-14 ';%90123456789'
PATTERN: 3
COMMAND: t y
COMMAND: :y
COMMAND: s/(.)%((%?.)*\\1)|;.*/\3\2/
PATTERN: 3
COMMAND: t y
COMMAND: /\n/ b z
COMMAND: s/^0*//
MATCHED REGEX REGISTERS
regex[0] = 0-0 ''
PATTERN: 3
COMMAND: N
PATTERN: 3\n5
COMMAND: :z
COMMAND: /\n0+$/! {
COMMAND: x
PATTERN:
HOLD: 3\n5
COMMAND: N
PATTERN: \n0 1 3
COMMAND: x
PATTERN: 3\n5
HOLD: \n0 1 3
COMMAND: b x
COMMAND: :x
COMMAND: s/$/%;%90123456789/
MATCHED REGEX REGISTERS
regex[0] = 3-3 ''
PATTERN: 3\n5%;%90123456789
COMMAND: :y
COMMAND: s/(.)%((%?.)*\\1)|;.*/\3\2/
MATCHED REGEX REGISTERS
regex[0] = 2-13 '5%;%9012345'
regex[1] = 2-3 '5'
regex[2] = 4-13 ';%9012345'
regex[3] = 11-12 '4'
PATTERN: 3\n4;%90123456789
COMMAND: t y
COMMAND: :y
COMMAND: s/(.)%((%?.)*\\1)|;.*/\3\2/
MATCHED REGEX REGISTERS
regex[0] = 3-16 ';%90123456789'
PATTERN: 3\n4
COMMAND: t y
COMMAND: :y
COMMAND: s/(.)%((%?.)*\\1)|;.*/\3\2/
PATTERN: 3\n4
COMMAND: t y
COMMAND: /\n/ b z
COMMAND: :z
COMMAND: /\n0+$/! {
COMMAND: x
PATTERN: \n0 1 3
HOLD: 3\n4
COMMAND: N
PATTERN: \n0 1 3\n0 2 2
COMMAND: x
PATTERN: 3\n4
HOLD: \n0 1 3\n0 2 2
COMMAND: b x
COMMAND: :x
COMMAND: s/$/%;%90123456789/
MATCHED REGEX REGISTERS
regex[0] = 3-3 ''
PATTERN: 3\n4%;%90123456789
COMMAND: :y
COMMAND: s/(.)%((%?.)*\\1)|;.*/\3\2/
MATCHED REGEX REGISTERS
regex[0] = 2-12 '4%;%901234'
regex[1] = 2-3 '4'
regex[2] = 4-12 ';%901234'
regex[3] = 10-11 '3'
PATTERN: 3\n3;%90123456789
COMMAND: t y
COMMAND: :y
COMMAND: s/(.)%((%?.)*\\1)|;.*/\3\2/
MATCHED REGEX REGISTERS
regex[0] = 3-16 ';%90123456789'
PATTERN: 3\n3
COMMAND: t y
COMMAND: :y
COMMAND: s/(.)%((%?.)*\\1)|;.*/\3\2/
PATTERN: 3\n3
COMMAND: t y
COMMAND: /\n/ b z
COMMAND: :z
COMMAND: /\n0+$/! {
COMMAND: x
PATTERN: \n0 1 3\n0 2 2
HOLD: 3\n3
COMMAND: N
PATTERN: \n0 1 3\n0 2 2\n1 2 1
COMMAND: x
PATTERN: 3\n3
HOLD: \n0 1 3\n0 2 2\n1 2 1
COMMAND: b x
COMMAND: :x
COMMAND: s/$/%;%90123456789/
MATCHED REGEX REGISTERS
regex[0] = 3-3 ''
PATTERN: 3\n3%;%90123456789
COMMAND: :y
COMMAND: s/(.)%((%?.)*\\1)|;.*/\3\2/
MATCHED REGEX REGISTERS
regex[0] = 2-11 '3%;%90123'
regex[1] = 2-3 '3'
regex[2] = 4-11 ';%90123'
regex[3] = 9-10 '2'
PATTERN: 3\n2;%90123456789
COMMAND: t y
COMMAND: :y
COMMAND: s/(.)%((%?.)*\\1)|;.*/\3\2/
MATCHED REGEX REGISTERS
regex[0] = 3-16 ';%90123456789'
PATTERN: 3\n2
COMMAND: t y
COMMAND: :y
COMMAND: s/(.)%((%?.)*\\1)|;.*/\3\2/
PATTERN: 3\n2
COMMAND: t y
COMMAND: /\n/ b z
COMMAND: :z
COMMAND: /\n0+$/! {
COMMAND: x
PATTERN: \n0 1 3\n0 2 2\n1 2 1
HOLD: 3\n2
COMMAND: N
PATTERN: \n0 1 3\n0 2 2\n1 2 1\n1 3 4
COMMAND: x
PATTERN: 3\n2
HOLD: \n0 1 3\n0 2 2\n1 2 1\n1 3 4
COMMAND: b x
COMMAND: :x
COMMAND: s/$/%;%90123456789/
MATCHED REGEX REGISTERS
regex[0] = 3-3 ''
PATTERN: 3\n2%;%90123456789
COMMAND: :y
COMMAND: s/(.)%((%?.)*\\1)|;.*/\3\2/
MATCHED REGEX REGISTERS
regex[0] = 2-10 '2%;%9012'
regex[1] = 2-3 '2'
regex[2] = 4-10 ';%9012'
regex[3] = 8-9 '1'
PATTERN: 3\n1;%90123456789
COMMAND: t y
COMMAND: :y
COMMAND: s/(.)%((%?.)*\\1)|;.*/\3\2/
MATCHED REGEX REGISTERS
regex[0] = 3-16 ';%90123456789'
PATTERN: 3\n1
COMMAND: t y
COMMAND: :y
COMMAND: s/(.)%((%?.)*\\1)|;.*/\3\2/
PATTERN: 3\n1
COMMAND: t y
COMMAND: /\n/ b z
COMMAND: :z
COMMAND: /\n0+$/! {
COMMAND: x
PATTERN: \n0 1 3\n0 2 2\n1 2 1\n1 3 4
HOLD: 3\n1
COMMAND: N
PATTERN: \n0 1 3\n0 2 2\n1 2 1\n1 3 4\n2 3 5
COMMAND: x
PATTERN: 3\n1
HOLD: \n0 1 3\n0 2 2\n1 2 1\n1 3 4\n2 3 5
COMMAND: b x
COMMAND: :x
COMMAND: s/$/%;%90123456789/
MATCHED REGEX REGISTERS
regex[0] = 3-3 ''
PATTERN: 3\n1%;%90123456789
COMMAND: :y
COMMAND: s/(.)%((%?.)*\\1)|;.*/\3\2/
MATCHED REGEX REGISTERS
regex[0] = 2-9 '1%;%901'
regex[1] = 2-3 '1'
regex[2] = 4-9 ';%901'
regex[3] = 7-8 '0'
PATTERN: 3\n0;%90123456789
COMMAND: t y
COMMAND: :y
COMMAND: s/(.)%((%?.)*\\1)|;.*/\3\2/
MATCHED REGEX REGISTERS
regex[0] = 3-16 ';%90123456789'
PATTERN: 3\n0
COMMAND: t y
COMMAND: :y
COMMAND: s/(.)%((%?.)*\\1)|;.*/\3\2/
PATTERN: 3\n0
COMMAND: t y
COMMAND: /\n/ b z
COMMAND: :z
COMMAND: /\n0+$/! {
COMMAND: }
COMMAND: s/(.*)\n.*/,\1;/
MATCHED REGEX REGISTERS
regex[0] = 0-3 '3
0'
regex[1] = 0-1 '3'
PATTERN: ,3;
COMMAND: x
PATTERN: \n0 1 3\n0 2 2\n1 2 1\n1 3 4\n2 3 5
HOLD: ,3;
COMMAND: s/^\n//
MATCHED REGEX REGISTERS
regex[0] = 0-1 '
'
PATTERN: 0 1 3\n0 2 2\n1 2 1\n1 3 4\n2 3 5
COMMAND: s/(\n|$)/%&/g
MATCHED REGEX REGISTERS
regex[0] = 5-6 '
'
regex[1] = 5-6 '
'
PATTERN: 0 1 3%\n0 2 2%\n1 2 1%\n1 3 4%\n2 3 5%
COMMAND: s/(^|\n)/:/g
MATCHED REGEX REGISTERS
regex[0] = 0-0 ''
regex[1] = 0-0 ''
PATTERN: :0 1 3%:0 2 2%:1 2 1%:1 3 4%:2 3 5%
COMMAND: :a
COMMAND: /[0-9]%/ {
COMMAND: s/ %/ 0%/g
PATTERN: :0 1 3%:0 2 2%:1 2 1%:1 3 4%:2 3 5%
COMMAND: s/^/0@1@2@3@4@5@6@7@8@9@#/
MATCHED REGEX REGISTERS
regex[0] = 0-0 ''
PATTERN: 0@1@2@3@4@5@6@7@8@9@#:0 1 3%:0 2 2%:1 2 1%:1 3 4%:2 3 5%
COMMAND: :b
COMMAND: s/([0-9])@([^#]*#.*)(:[^:]*)\\1%([^:]*)/\1@\3%\1\4\2/
MATCHED REGEX REGISTERS
regex[0] = 2-42 '1@2@3@4@5@6@7@8@9@#:0 1 3%:0 2 2%:1 2 1%'
regex[1] = 2-3 '1'
regex[2] = 4-35 '2@3@4@5@6@7@8@9@#:0 1 3%:0 2 2%'
regex[3] = 35-40 ':1 2 '
regex[4] = 42-42 ''
PATTERN: 0@1@:1 2 %12@3@4@5@6@7@8@9@#:0 1 3%:0 2 2%:1 3 4%:2 3 5%
COMMAND: t b
COMMAND: :b
COMMAND: s/([0-9])@([^#]*#.*)(:[^:]*)\\1%([^:]*)/\1@\3%\1\4\2/
MATCHED REGEX REGISTERS
regex[0] = 11-42 '2@3@4@5@6@7@8@9@#:0 1 3%:0 2 2%'
regex[1] = 11-12 '2'
regex[2] = 13-35 '3@4@5@6@7@8@9@#:0 1 3%'
regex[3] = 35-40 ':0 2 '
regex[4] = 42-42 ''
PATTERN: 0@1@:1 2 %12@:0 2 %23@4@5@6@7@8@9@#:0 1 3%:1 3 4%:2 3 5%
COMMAND: t b
COMMAND: :b
COMMAND: s/([0-9])@([^#]*#.*)(:[^:]*)\\1%([^:]*)/\1@\3%\1\4\2/
MATCHED REGEX REGISTERS
regex[0] = 20-42 '3@4@5@6@7@8@9@#:0 1 3%'
regex[1] = 20-21 '3'
regex[2] = 22-35 '4@5@6@7@8@9@#'
regex[3] = 35-40 ':0 1 '
regex[4] = 42-42 ''
PATTERN: 0@1@:1 2 %12@:0 2 %23@:0 1 %34@5@6@7@8@9@#:1 3 4%:2 3 5%
COMMAND: t b
COMMAND: :b
COMMAND: s/([0-9])@([^#]*#.*)(:[^:]*)\\1%([^:]*)/\1@\3%\1\4\2/
MATCHED REGEX REGISTERS
regex[0] = 29-49 '4@5@6@7@8@9@#:1 3 4%'
regex[1] = 29-30 '4'
regex[2] = 31-42 '5@6@7@8@9@#'
regex[3] = 42-47 ':1 3 '
regex[4] = 49-49 ''
PATTERN: 0@1@:1 2 %12@:0 2 %23@:0 1 %34@:1 3 %45@6@7@8@9@#:2 3 5%
COMMAND: t b
COMMAND: :b
COMMAND: s/([0-9])@([^#]*#.*)(:[^:]*)\\1%([^:]*)/\1@\3%\1\4\2/
MATCHED REGEX REGISTERS
regex[0] = 38-56 '5@6@7@8@9@#:2 3 5%'
regex[1] = 38-39 '5'
regex[2] = 40-49 '6@7@8@9@#'
regex[3] = 49-54 ':2 3 '
regex[4] = 56-56 ''
PATTERN: 0@1@:1 2 %12@:0 2 %23@:0 1 %34@:1 3 %45@:2 3 %56@7@8@9@#
COMMAND: t b
COMMAND: :b
COMMAND: s/([0-9])@([^#]*#.*)(:[^:]*)\\1%([^:]*)/\1@\3%\1\4\2/
PATTERN: 0@1@:1 2 %12@:0 2 %23@:0 1 %34@:1 3 %45@:2 3 %56@7@8@9@#
COMMAND: t b
COMMAND: s/.@|#//g
MATCHED REGEX REGISTERS
regex[0] = 0-2 '0@'
PATTERN: :1 2 %1:0 2 %2:0 1 %3:1 3 %4:2 3 %5
COMMAND: b a
COMMAND: :a
COMMAND: /[0-9]%/ {
COMMAND: }
COMMAND: s/%0*([0-9])/\1/g
MATCHED REGEX REGISTERS
regex[0] = 5-7 '%1'
regex[1] = 6-7 '1'
PATTERN: :1 2 1:0 2 2:0 1 3:1 3 4:2 3 5
COMMAND: /;/ b e
COMMAND: s/^/:0 0:,0;/
MATCHED REGEX REGISTERS
regex[0] = 0-0 ''
PATTERN: :0 0:,0;:1 2 1:0 2 2:0 1 3:1 3 4:2 3 5
COMMAND: :c
COMMAND: :d
COMMAND: s/(,([0-9]*);.*:)(_?[0-9]* )?\\2 ([^:]*)/\1_\2 \3\4/
MATCHED REGEX REGISTERS
regex[0] = 5-26 ',0;:1 2 1:0 2 2:0 1 3'
regex[1] = 5-21 ',0;:1 2 1:0 2 2:'
regex[2] = 6-7 '0'
PATTERN: :0 0:,0;:1 2 1:0 2 2:_0 1 3:1 3 4:2 3 5
COMMAND: t d
COMMAND: :d
COMMAND: s/(,([0-9]*);.*:)(_?[0-9]* )?\\2 ([^:]*)/\1_\2 \3\4/
MATCHED REGEX REGISTERS
regex[0] = 5-20 ',0;:1 2 1:0 2 2'
regex[1] = 5-15 ',0;:1 2 1:'
regex[2] = 6-7 '0'
PATTERN: :0 0:,0;:1 2 1:_0 2 2:_0 1 3:1 3 4:2 3 5
COMMAND: t d
COMMAND: :d
COMMAND: s/(,([0-9]*);.*:)(_?[0-9]* )?\\2 ([^:]*)/\1_\2 \3\4/
PATTERN: :0 0:,0;:1 2 1:_0 2 2:_0 1 3:1 3 4:2 3 5
COMMAND: t d
COMMAND: /\n/ b f
COMMAND: s/:_[0-9]* _[^:]*//g
PATTERN: :0 0:,0;:1 2 1:_0 2 2:_0 1 3:1 3 4:2 3 5
COMMAND: s/(^[^;]*)(;[^_]*)(:_[0-9]* ([0-9]*)[^:]*)/\3\1,\4\2/
MATCHED REGEX REGISTERS
regex[0] = 0-21 ':0 0:,0;:1 2 1:_0 2 2'
regex[1] = 0-7 ':0 0:,0'
regex[2] = 7-14 ';:1 2 1'
regex[3] = 14-21 ':_0 2 2'
regex[4] = 18-19 '2'
PATTERN: :_0 2 2:0 0:,0,2;:1 2 1:_0 1 3:1 3 4:2 3 5
COMMAND: s/^:_([0-9]*) ([^:,]*)([^;]*)(:\\1 [0-9]*)/:_\2%\4%\3/
MATCHED REGEX REGISTERS
regex[0] = 0-11 ':_0 2 2:0 0'
regex[1] = 2-3 '0'
regex[2] = 4-7 '2 2'
regex[3] = 7-7 ''
regex[4] = 7-11 ':0 0'
PATTERN: :_2 2%:0 0%:,0,2;:1 2 1:_0 1 3:1 3 4:2 3 5
COMMAND: b a
COMMAND: :a
COMMAND: /[0-9]%/ {
COMMAND: s/ %/ 0%/g
PATTERN: :_2 2%:0 0%:,0,2;:1 2 1:_0 1 3:1 3 4:2 3 5
COMMAND: s/^/0@1@2@3@4@5@6@7@8@9@#/
MATCHED REGEX REGISTERS
regex[0] = 0-0 ''
PATTERN: 0@1@2@3@4@5@6@7@8@9@#:_2 2%:0 0%:,0,2;:1 2 1:_0 1 3:1 3 4:2 3 5
COMMAND: :b
COMMAND: s/([0-9])@([^#]*#.*)(:[^:]*)\\1%([^:]*)/\1@\3%\1\4\2/
MATCHED REGEX REGISTERS
regex[0] = 0-32 '0@1@2@3@4@5@6@7@8@9@#:_2 2%:0 0%'
regex[1] = 0-1 '0'
regex[2] = 2-27 '1@2@3@4@5@6@7@8@9@#:_2 2%'
regex[3] = 27-30 ':0 '
regex[4] = 32-32 ''
PATTERN: 0@:0 %01@2@3@4@5@6@7@8@9@#:_2 2%:,0,2;:1 2 1:_0 1 3:1 3 4:2 3 5
COMMAND: t b
COMMAND: :b
COMMAND: s/([0-9])@([^#]*#.*)(:[^:]*)\\1%([^:]*)/\1@\3%\1\4\2/
MATCHED REGEX REGISTERS
regex[0] = 9-32 '2@3@4@5@6@7@8@9@#:_2 2%'
regex[1] = 9-10 '2'
regex[2] = 11-26 '3@4@5@6@7@8@9@#'
regex[3] = 26-30 ':_2 '
regex[4] = 32-32 ''
PATTERN: 0@:0 %01@2@:_2 %23@4@5@6@7@8@9@#:,0,2;:1 2 1:_0 1 3:1 3 4:2 3 5
COMMAND: t b
COMMAND: :b
COMMAND: s/([0-9])@([^#]*#.*)(:[^:]*)\\1%([^:]*)/\1@\3%\1\4\2/
PATTERN: 0@:0 %01@2@:_2 %23@4@5@6@7@8@9@#:,0,2;:1 2 1:_0 1 3:1 3 4:2 3 5
COMMAND: t b
COMMAND: s/.@|#//g
MATCHED REGEX REGISTERS
regex[0] = 0-2 '0@'
PATTERN: :0 %0:_2 %2:,0,2;:1 2 1:_0 1 3:1 3 4:2 3 5
COMMAND: b a
COMMAND: :a
COMMAND: /[0-9]%/ {
COMMAND: }
COMMAND: s/%0*([0-9])/\1/g
MATCHED REGEX REGISTERS
regex[0] = 3-5 '%0'
regex[1] = 4-5 '0'
PATTERN: :0 0:_2 2:,0,2;:1 2 1:_0 1 3:1 3 4:2 3 5
COMMAND: /;/ b e
COMMAND: :e
COMMAND: /^:_/ s/^(:_[0-9]* )[^:]*(:[0-9]* ([0-9]*))/\1\3\2/
COMMAND: s/:_(.*;)/:\1/
MATCHED REGEX REGISTERS
regex[0] = 4-15 ':_2 2:,0,2;'
regex[1] = 6-15 '2 2:,0,2;'
PATTERN: :0 0:2 2:,0,2;:1 2 1:_0 1 3:1 3 4:2 3 5
COMMAND: s/%//g
PATTERN: :0 0:2 2:,0,2;:1 2 1:_0 1 3:1 3 4:2 3 5
COMMAND: t c
COMMAND: :c
COMMAND: :d
COMMAND: s/(,([0-9]*);.*:)(_?[0-9]* )?\\2 ([^:]*)/\1_\2 \3\4/
MATCHED REGEX REGISTERS
regex[0] = 11-39 ',2;:1 2 1:_0 1 3:1 3 4:2 3 5'
regex[1] = 11-34 ',2;:1 2 1:_0 1 3:1 3 4:'
regex[2] = 12-13 '2'
PATTERN: :0 0:2 2:,0,2;:1 2 1:_0 1 3:1 3 4:_2 3 5
COMMAND: t d
COMMAND: :d
COMMAND: s/(,([0-9]*);.*:)(_?[0-9]* )?\\2 ([^:]*)/\1_\2 \3\4/
MATCHED REGEX REGISTERS
regex[0] = 11-20 ',2;:1 2 1'
regex[1] = 11-15 ',2;:'
regex[2] = 12-13 '2'
regex[3] = 15-17 '1 '
regex[4] = 19-20 '1'
PATTERN: :0 0:2 2:,0,2;:_2 1 1:_0 1 3:1 3 4:_2 3 5
COMMAND: t d
COMMAND: :d
COMMAND: s/(,([0-9]*);.*:)(_?[0-9]* )?\\2 ([^:]*)/\1_\2 \3\4/
PATTERN: :0 0:2 2:,0,2;:_2 1 1:_0 1 3:1 3 4:_2 3 5
COMMAND: t d
COMMAND: /\n/ b f
COMMAND: s/:_[0-9]* _[^:]*//g
PATTERN: :0 0:2 2:,0,2;:_2 1 1:_0 1 3:1 3 4:_2 3 5
COMMAND: s/(^[^;]*)(;[^_]*)(:_[0-9]* ([0-9]*)[^:]*)/\3\1,\4\2/
MATCHED REGEX REGISTERS
regex[0] = 0-21 ':0 0:2 2:,0,2;:_2 1 1'
regex[1] = 0-13 ':0 0:2 2:,0,2'
regex[2] = 13-14 ';'
regex[3] = 14-21 ':_2 1 1'
regex[4] = 18-19 '1'
PATTERN: :_2 1 1:0 0:2 2:,0,2,1;:_0 1 3:1 3 4:_2 3 5
COMMAND: s/^:_([0-9]*) ([^:,]*)([^;]*)(:\\1 [0-9]*)/:_\2%\4%\3/
MATCHED REGEX REGISTERS
regex[0] = 0-15 ':_2 1 1:0 0:2 2'
regex[1] = 2-3 '2'
regex[2] = 4-7 '1 1'
regex[3] = 7-11 ':0 0'
regex[4] = 11-15 ':2 2'
PATTERN: :_1 1%:2 2%:0 0:,0,2,1;:_0 1 3:1 3 4:_2 3 5
COMMAND: b a
COMMAND: :a
COMMAND: /[0-9]%/ {
COMMAND: s/ %/ 0%/g
PATTERN: :_1 1%:2 2%:0 0:,0,2,1;:_0 1 3:1 3 4:_2 3 5
COMMAND: s/^/0@1@2@3@4@5@6@7@8@9@#/
MATCHED REGEX REGISTERS
regex[0] = 0-0 ''
PATTERN: 0@1@2@3@4@5@6@7@8@9@#:_1 1%:2 2%:0 0:,0,2,1;:_0 1 3:1 3 4:_2 3 5
COMMAND: :b
COMMAND: s/([0-9])@([^#]*#.*)(:[^:]*)\\1%([^:]*)/\1@\3%\1\4\2/
MATCHED REGEX REGISTERS
regex[0] = 2-27 '1@2@3@4@5@6@7@8@9@#:_1 1%'
regex[1] = 2-3 '1'
regex[2] = 4-21 '2@3@4@5@6@7@8@9@#'
regex[3] = 21-25 ':_1 '
regex[4] = 27-27 ''
PATTERN: 0@1@:_1 %12@3@4@5@6@7@8@9@#:2 2%:0 0:,0,2,1;:_0 1 3:1 3 4:_2 3 5
COMMAND: t b
COMMAND: :b
COMMAND: s/([0-9])@([^#]*#.*)(:[^:]*)\\1%([^:]*)/\1@\3%\1\4\2/
MATCHED REGEX REGISTERS
regex[0] = 10-32 '2@3@4@5@6@7@8@9@#:2 2%'
regex[1] = 10-11 '2'
regex[2] = 12-27 '3@4@5@6@7@8@9@#'
regex[3] = 27-30 ':2 '
regex[4] = 32-32 ''
PATTERN: 0@1@:_1 %12@:2 %23@4@5@6@7@8@9@#:0 0:,0,2,1;:_0 1 3:1 3 4:_2 3 5
COMMAND: t b
COMMAND: :b
COMMAND: s/([0-9])@([^#]*#.*)(:[^:]*)\\1%([^:]*)/\1@\3%\1\4\2/
PATTERN: 0@1@:_1 %12@:2 %23@4@5@6@7@8@9@#:0 0:,0,2,1;:_0 1 3:1 3 4:_2 3 5
COMMAND: t b
COMMAND: s/.@|#//g
MATCHED REGEX REGISTERS
regex[0] = 0-2 '0@'
PATTERN: :_1 %1:2 %2:0 0:,0,2,1;:_0 1 3:1 3 4:_2 3 5
COMMAND: b a
COMMAND: :a
COMMAND: /[0-9]%/ {
COMMAND: }
COMMAND: s/%0*([0-9])/\1/g
MATCHED REGEX REGISTERS
regex[0] = 4-6 '%1'
regex[1] = 5-6 '1'
PATTERN: :_1 1:2 2:0 0:,0,2,1;:_0 1 3:1 3 4:_2 3 5
COMMAND: /;/ b e
COMMAND: :e
COMMAND: /^:_/ s/^(:_[0-9]* )[^:]*(:[0-9]* ([0-9]*))/\1\3\2/
MATCHED REGEX REGISTERS
regex[0] = 0-9 ':_1 1:2 2'
regex[1] = 0-4 ':_1 '
regex[2] = 5-9 ':2 2'
regex[3] = 8-9 '2'
PATTERN: :_1 2:2 2:0 0:,0,2,1;:_0 1 3:1 3 4:_2 3 5
COMMAND: s/:_(.*;)/:\1/
MATCHED REGEX REGISTERS
regex[0] = 0-21 ':_1 2:2 2:0 0:,0,2,1;'
regex[1] = 2-21 '1 2:2 2:0 0:,0,2,1;'
PATTERN: :1 2:2 2:0 0:,0,2,1;:_0 1 3:1 3 4:_2 3 5
COMMAND: s/%//g
PATTERN: :1 2:2 2:0 0:,0,2,1;:_0 1 3:1 3 4:_2 3 5
COMMAND: t c
COMMAND: :c
COMMAND: :d
COMMAND: s/(,([0-9]*);.*:)(_?[0-9]* )?\\2 ([^:]*)/\1_\2 \3\4/
MATCHED REGEX REGISTERS
regex[0] = 17-33 ',1;:_0 1 3:1 3 4'
regex[1] = 17-28 ',1;:_0 1 3:'
regex[2] = 18-19 '1'
PATTERN: :1 2:2 2:0 0:,0,2,1;:_0 1 3:_1 3 4:_2 3 5
COMMAND: t d
COMMAND: :d
COMMAND: s/(,([0-9]*);.*:)(_?[0-9]* )?\\2 ([^:]*)/\1_\2 \3\4/
MATCHED REGEX REGISTERS
regex[0] = 17-27 ',1;:_0 1 3'
regex[1] = 17-21 ',1;:'
regex[2] = 18-19 '1'
regex[3] = 21-24 '_0 '
regex[4] = 26-27 '3'
PATTERN: :1 2:2 2:0 0:,0,2,1;:_1 _0 3:_1 3 4:_2 3 5
COMMAND: t d
COMMAND: :d
COMMAND: s/(,([0-9]*);.*:)(_?[0-9]* )?\\2 ([^:]*)/\1_\2 \3\4/
PATTERN: :1 2:2 2:0 0:,0,2,1;:_1 _0 3:_1 3 4:_2 3 5
COMMAND: t d
COMMAND: /\n/ b f
COMMAND: s/:_[0-9]* _[^:]*//g
MATCHED REGEX REGISTERS
regex[0] = 20-28 ':_1 _0 3'
PATTERN: :1 2:2 2:0 0:,0,2,1;:_1 3 4:_2 3 5
COMMAND: s/(^[^;]*)(;[^_]*)(:_[0-9]* ([0-9]*)[^:]*)/\3\1,\4\2/
MATCHED REGEX REGISTERS
regex[0] = 0-27 ':1 2:2 2:0 0:,0,2,1;:_1 3 4'
regex[1] = 0-19 ':1 2:2 2:0 0:,0,2,1'
regex[2] = 19-20 ';'
regex[3] = 20-27 ':_1 3 4'
regex[4] = 24-25 '3'
PATTERN: :_1 3 4:1 2:2 2:0 0:,0,2,1,3;:_2 3 5
COMMAND: s/^:_([0-9]*) ([^:,]*)([^;]*)(:\\1 [0-9]*)/:_\2%\4%\3/
MATCHED REGEX REGISTERS
regex[0] = 0-11 ':_1 3 4:1 2'
regex[1] = 2-3 '1'
regex[2] = 4-7 '3 4'
regex[3] = 7-7 ''
regex[4] = 7-11 ':1 2'
PATTERN: :_3 4%:1 2%:2 2:0 0:,0,2,1,3;:_2 3 5
COMMAND: b a
COMMAND: :a
COMMAND: /[0-9]%/ {
COMMAND: s/ %/ 0%/g
PATTERN: :_3 4%:1 2%:2 2:0 0:,0,2,1,3;:_2 3 5
COMMAND: s/^/0@1@2@3@4@5@6@7@8@9@#/
MATCHED REGEX REGISTERS
regex[0] = 0-0 ''
PATTERN: 0@1@2@3@4@5@6@7@8@9@#:_3 4%:1 2%:2 2:0 0:,0,2,1,3;:_2 3 5
COMMAND: :b
COMMAND: s/([0-9])@([^#]*#.*)(:[^:]*)\\1%([^:]*)/\1@\3%\1\4\2/
MATCHED REGEX REGISTERS
regex[0] = 4-32 '2@3@4@5@6@7@8@9@#:_3 4%:1 2%'
regex[1] = 4-5 '2'
regex[2] = 6-27 '3@4@5@6@7@8@9@#:_3 4%'
regex[3] = 27-30 ':1 '
regex[4] = 32-32 ''
PATTERN: 0@1@2@:1 %23@4@5@6@7@8@9@#:_3 4%:2 2:0 0:,0,2,1,3;:_2 3 5
COMMAND: t b
COMMAND: :b
COMMAND: s/([0-9])@([^#]*#.*)(:[^:]*)\\1%([^:]*)/\1@\3%\1\4\2/
MATCHED REGEX REGISTERS
regex[0] = 13-32 '4@5@6@7@8@9@#:_3 4%'
regex[1] = 13-14 '4'
regex[2] = 15-26 '5@6@7@8@9@#'
regex[3] = 26-30 ':_3 '
regex[4] = 32-32 ''
PATTERN: 0@1@2@:1 %23@4@:_3 %45@6@7@8@9@#:2 2:0 0:,0,2,1,3;:_2 3 5
COMMAND: t b
COMMAND: :b
COMMAND: s/([0-9])@([^#]*#.*)(:[^:]*)\\1%([^:]*)/\1@\3%\1\4\2/
PATTERN: 0@1@2@:1 %23@4@:_3 %45@6@7@8@9@#:2 2:0 0:,0,2,1,3;:_2 3 5
COMMAND: t b
COMMAND: s/.@|#//g
MATCHED REGEX REGISTERS
regex[0] = 0-2 '0@'
PATTERN: :1 %2:_3 %4:2 2:0 0:,0,2,1,3;:_2 3 5
COMMAND: b a
COMMAND: :a
COMMAND: /[0-9]%/ {
COMMAND: }
COMMAND: s/%0*([0-9])/\1/g
MATCHED REGEX REGISTERS
regex[0] = 3-5 '%2'
regex[1] = 4-5 '2'
PATTERN: :1 2:_3 4:2 2:0 0:,0,2,1,3;:_2 3 5
COMMAND: /;/ b e
COMMAND: :e
COMMAND: /^:_/ s/^(:_[0-9]* )[^:]*(:[0-9]* ([0-9]*))/\1\3\2/
COMMAND: s/:_(.*;)/:\1/
MATCHED REGEX REGISTERS
regex[0] = 4-27 ':_3 4:2 2:0 0:,0,2,1,3;'
regex[1] = 6-27 '3 4:2 2:0 0:,0,2,1,3;'
PATTERN: :1 2:3 4:2 2:0 0:,0,2,1,3;:_2 3 5
COMMAND: s/%//g
PATTERN: :1 2:3 4:2 2:0 0:,0,2,1,3;:_2 3 5
COMMAND: t c
COMMAND: :c
COMMAND: :d
COMMAND: s/(,([0-9]*);.*:)(_?[0-9]* )?\\2 ([^:]*)/\1_\2 \3\4/
MATCHED REGEX REGISTERS
regex[0] = 23-33 ',3;:_2 3 5'
regex[1] = 23-27 ',3;:'
regex[2] = 24-25 '3'
regex[3] = 27-30 '_2 '
regex[4] = 32-33 '5'
PATTERN: :1 2:3 4:2 2:0 0:,0,2,1,3;:_3 _2 5
COMMAND: t d
COMMAND: :d
COMMAND: s/(,([0-9]*);.*:)(_?[0-9]* )?\\2 ([^:]*)/\1_\2 \3\4/
PATTERN: :1 2:3 4:2 2:0 0:,0,2,1,3;:_3 _2 5
COMMAND: t d
COMMAND: /\n/ b f
COMMAND: s/:_[0-9]* _[^:]*//g
MATCHED REGEX REGISTERS
regex[0] = 26-34 ':_3 _2 5'
PATTERN: :1 2:3 4:2 2:0 0:,0,2,1,3;
COMMAND: s/(^[^;]*)(;[^_]*)(:_[0-9]* ([0-9]*)[^:]*)/\3\1,\4\2/
PATTERN: :1 2:3 4:2 2:0 0:,0,2,1,3;
COMMAND: s/^:_([0-9]*) ([^:,]*)([^;]*)(:\\1 [0-9]*)/:_\2%\4%\3/
PATTERN: :1 2:3 4:2 2:0 0:,0,2,1,3;
COMMAND: b a
COMMAND: :a
COMMAND: /[0-9]%/ {
COMMAND: }
COMMAND: s/%0*([0-9])/\1/g
PATTERN: :1 2:3 4:2 2:0 0:,0,2,1,3;
COMMAND: /;/ b e
COMMAND: :e
COMMAND: /^:_/ s/^(:_[0-9]* )[^:]*(:[0-9]* ([0-9]*))/\1\3\2/
COMMAND: s/:_(.*;)/:\1/
PATTERN: :1 2:3 4:2 2:0 0:,0,2,1,3;
COMMAND: s/%//g
PATTERN: :1 2:3 4:2 2:0 0:,0,2,1,3;
COMMAND: t c
COMMAND: :c
COMMAND: :d
COMMAND: s/(,([0-9]*);.*:)(_?[0-9]* )?\\2 ([^:]*)/\1_\2 \3\4/
PATTERN: :1 2:3 4:2 2:0 0:,0,2,1,3;
COMMAND: t d
COMMAND: /\n/ b f
COMMAND: s/:_[0-9]* _[^:]*//g
PATTERN: :1 2:3 4:2 2:0 0:,0,2,1,3;
COMMAND: s/(^[^;]*)(;[^_]*)(:_[0-9]* ([0-9]*)[^:]*)/\3\1,\4\2/
PATTERN: :1 2:3 4:2 2:0 0:,0,2,1,3;
COMMAND: s/^:_([0-9]*) ([^:,]*)([^;]*)(:\\1 [0-9]*)/:_\2%\4%\3/
PATTERN: :1 2:3 4:2 2:0 0:,0,2,1,3;
COMMAND: b a
COMMAND: :a
COMMAND: /[0-9]%/ {
COMMAND: }
COMMAND: s/%0*([0-9])/\1/g
PATTERN: :1 2:3 4:2 2:0 0:,0,2,1,3;
COMMAND: /;/ b e
COMMAND: :e
COMMAND: /^:_/ s/^(:_[0-9]* )[^:]*(:[0-9]* ([0-9]*))/\1\3\2/
COMMAND: s/:_(.*;)/:\1/
PATTERN: :1 2:3 4:2 2:0 0:,0,2,1,3;
COMMAND: s/%//g
PATTERN: :1 2:3 4:2 2:0 0:,0,2,1,3;
COMMAND: t c
COMMAND: s/_|,.*//g
MATCHED REGEX REGISTERS
regex[0] = 17-26 ',0,2,1,3;'
PATTERN: :1 2:3 4:2 2:0 0:
COMMAND: x
PATTERN: ,3;
HOLD: :1 2:3 4:2 2:0 0:
COMMAND: G
PATTERN: ,3;\n:1 2:3 4:2 2:0 0:
COMMAND: b d
COMMAND: :d
COMMAND: s/(,([0-9]*);.*:)(_?[0-9]* )?\\2 ([^:]*)/\1_\2 \3\4/
MATCHED REGEX REGISTERS
regex[0] = 0-12 ',3;
:1 2:3 4'
regex[1] = 0-9 ',3;
:1 2:'
regex[2] = 1-2 '3'
PATTERN: ,3;\n:1 2:_3 4:2 2:0 0:
COMMAND: t d
COMMAND: :d
COMMAND: s/(,([0-9]*);.*:)(_?[0-9]* )?\\2 ([^:]*)/\1_\2 \3\4/
PATTERN: ,3;\n:1 2:_3 4:2 2:0 0:
COMMAND: t d
COMMAND: /\n/ b f
COMMAND: :f
COMMAND: s/.*:_[^ ] ([0-9]*).*/\1/
MATCHED REGEX REGISTERS
regex[0] = 0-22 ',3;
:1 2:_3 4:2 2:0 0:'
regex[1] = 12-13 '4'
PATTERN: 4
COMMAND: t g
COMMAND: :g
END-OF-CYCLE:
4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.