回答編集履歴

2

a

2016/06/16 13:42

投稿

mpyw
mpyw

スコア5223

test CHANGED
@@ -4,6 +4,6 @@
4
4
 
5
5
  ```bash
6
6
 
7
- perl -pe 's/^.*?([A-Z]{3}).*?\/M\/(\d{3}).*?$/mojo=$1 suji=$2/' < sample.txt
7
+ perl -pe 's/^.*?([A-Z]{3}).*?M\/(\d{3}).*?$/mojo=$1 suji=$2/' < sample.txt
8
8
 
9
9
  ```

1

a

2016/06/16 13:42

投稿

mpyw
mpyw

スコア5223

test CHANGED
@@ -4,6 +4,6 @@
4
4
 
5
5
  ```bash
6
6
 
7
- perl -pe 's/^.*?([A-Z]{3}).*?\/M\/(\d{3}).*?$/mojo=$1 suji=$2/g' < sample.txt
7
+ perl -pe 's/^.*?([A-Z]{3}).*?\/M\/(\d{3}).*?$/mojo=$1 suji=$2/' < sample.txt
8
8
 
9
9
  ```