Page 1 of 1

Bounds参数是有什么特别限制么?

Posted: Feb 14 2012, 18:35
by foleo
还是我写错了?

我是想把某个网站里,<span>标签中的英文问号,修改为中文问号。用了这样的规则。

Code: Select all

[Patterns]
Name = "symbol convert"
Active = TRUE
URL = "www.somesite.com/"
Bounds = "<span\s*</span>"
Limit = 256
Match = "\?"
Replace = "&#65311;"
网页中有这样的内容,但是不起作用。字节数没问题的。

Code: Select all

<span style="color:blue">一段中文?</span>

Re: Bounds参数是有什么特别限制么?

Posted: Feb 15 2012, 10:48
by phoenix
Since the bounds selects the range of text being searched - the matching expression must match everything matched by the bounds for the rule as a whole to match.