質問編集履歴
2
よく考えたら正規表現の初心者だったので、初心者アイコンを有効化
test
CHANGED
File without changes
|
test
CHANGED
File without changes
|
1
例えのパターンを、別の表現に置き換えられないようなものに変更
test
CHANGED
File without changes
|
test
CHANGED
@@ -26,7 +26,7 @@
|
|
26
26
|
|
27
27
|
```JavaScript
|
28
28
|
|
29
|
-
/[a-z]|@[
|
29
|
+
/[a-z]|@[A-H]|#[1-9]/
|
30
30
|
|
31
31
|
```
|
32
32
|
|
@@ -38,7 +38,7 @@
|
|
38
38
|
|
39
39
|
```JavaScript
|
40
40
|
|
41
|
-
str.replace(/([a-z]|@[
|
41
|
+
str.replace(/([a-z]|@[A-H]|#[1-9])+/g, function(match){
|
42
42
|
|
43
43
|
// 何かの処理
|
44
44
|
|