We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d69d5f7 commit fbb625aCopy full SHA for fbb625a
answer/35.md
@@ -7,7 +7,7 @@ $ cat speech.txt | grep -Po '^.*?[ア-ン]{4}(?=[ア-ン])' | awk '{$2=$1}$1=len
7
### 別解
8
9
```
10
-別解1(山田)$ cat speech.txt | rb -l "gsub(/^((?~[ア-ン]{5})).*/,'\1')" | awk '$0=length($0)" "$0'
+別解1(山田)$ cat speech.txt | rb -l "sub(/^((?~[ア-ン]{5})).*/,'\1')" | awk '$0=length($0)" "$0'
11
別解2(山田)$ cat speech.txt | cure grep -o '^(?~[ア-ン]{5})' | awk '$0=length($0)" "$0'
12
13
0 commit comments