Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
11
Task/Middle-three-digits/Sed/middle-three-digits.sed
Normal file
11
Task/Middle-three-digits/Sed/middle-three-digits.sed
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
h
|
||||
s/^[-+]\{0,1\}0*\([1-9]\([0-9][0-9]\)\{1,\}\)$/\1/
|
||||
t l
|
||||
s/$/ -> error!/
|
||||
b
|
||||
:l
|
||||
s/.\(.\{3,\}\)./\1/
|
||||
t l
|
||||
x
|
||||
G
|
||||
s/\n/ -> /
|
||||
Loading…
Add table
Add a link
Reference in a new issue