回答編集履歴

1

補足の追加。

2017/07/30 05:13

投稿

kei344
kei344

スコア69442

test CHANGED
@@ -5,3 +5,29 @@
5
5
  <mt:If name="linkurl" like="(html|php)"><mt:Ignore>省略</mt:Ignore></mt:If>
6
6
 
7
7
  ```
8
+
9
+
10
+
11
+ ---
12
+
13
+
14
+
15
+ **追記:**
16
+
17
+
18
+
19
+ テストしましたが、少なくとも下記のようなURLであれば判別できています。
20
+
21
+ ```html
22
+
23
+ <mt:SetVarBlock name='linkurl'>http://example.jp/regex.html</mt:SetVarBlock>
24
+
25
+ <mt:If name="linkurl" like="(html|php)"><!-- >(html|php) http://example.jp/regex.html< --></mt:If>
26
+
27
+ <mt:SetVarBlock name='linkurl'>http://example.jp/regex/</mt:SetVarBlock>
28
+
29
+ <mt:If name="linkurl" like="(html|php)"><!-- >(html|php) http://example.jp/regex/< --></mt:If>
30
+
31
+ ```
32
+
33
+