質問編集履歴
3
tweak
test
CHANGED
File without changes
|
test
CHANGED
@@ -30,7 +30,7 @@
|
|
30
30
|
|
31
31
|
```js
|
32
32
|
|
33
|
-
const r = '
|
33
|
+
const r = '@^(hoge|hoge2)$'
|
34
34
|
|
35
35
|
const rr = new RegExp(r, 'g')
|
36
36
|
|
2
tweak
test
CHANGED
File without changes
|
test
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
```js
|
6
6
|
|
7
|
-
const r = '
|
7
|
+
const r = '^(hoge|hoge2)$'
|
8
8
|
|
9
9
|
const rr = new RegExp(r, 'g')
|
10
10
|
|
@@ -30,7 +30,7 @@
|
|
30
30
|
|
31
31
|
```js
|
32
32
|
|
33
|
-
const r = '(@|@)(
|
33
|
+
const r = '(@|@)(^(hoge|hoge2)*)' // 大文字と小文字の@
|
34
34
|
|
35
35
|
const rr = new RegExp(r, 'g')
|
36
36
|
|
1
tweak
test
CHANGED
File without changes
|
test
CHANGED
@@ -52,4 +52,4 @@
|
|
52
52
|
|
53
53
|
|
54
54
|
|
55
|
-
|
55
|
+
どう書けば正しく反応してくれるかご存知の方がいらっしゃいましたら教えていただきたいです
|