回答編集履歴
2
chousei
test
CHANGED
@@ -18,7 +18,7 @@
|
|
18
18
|
|
19
19
|
eof;
|
20
20
|
|
21
|
-
$pattern="|(?<=</a> )((.+))(?=\r\n</li>)|";
|
21
|
+
$pattern="|(?<=</a> )((.+?))(?=[\r\n]+</li>)|";
|
22
22
|
|
23
23
|
$replacement="$1";
|
24
24
|
|
1
chousei
test
CHANGED
@@ -8,11 +8,11 @@
|
|
8
8
|
|
9
9
|
$str=<<<eof
|
10
10
|
|
11
|
-
<li class="cat-item cat-item-2"><a href="#" onclick="hoge()">ca1</a> (2)
|
11
|
+
<li class="cat-item cat-item-2"><a href="#" onclick="hoge(2)">ca1</a> (2)
|
12
12
|
|
13
13
|
</li>
|
14
14
|
|
15
|
-
<li class="cat-item cat-item-3" onclick="fuga()"><a href="#">ca2</a> (1)
|
15
|
+
<li class="cat-item cat-item-3" onclick="fuga(1)"><a href="#">ca2</a> (1)
|
16
16
|
|
17
17
|
</li>
|
18
18
|
|