1
匹配的主机模式,我有以下网址:安卓:在意图过滤
http://api.modarchive.org/downloads.php?moduleid=50479#ngs_cvrg.xm
我想这样做是符合包含在主机“国防部”的所有.PHP的URL。机器人:主机将只允许1个通配符,我需要2
我曾尝试修改的Android:pathPattern代替如下:
<data android:pathPattern=".*mod.*\\.php"/>
有什么不对上述声明?
如果我写了这样一个“正常”的文件通配符,我会用:
*mod*.php
..但Android的pathPattern语法是不同的。
这似乎是什么,我试图做是不可能的:
"The URL consists of four parts: it has each of the four properties scheme, host, port, path corresponds to the URI part.
For example: content://com.wjr.example1:121/files
Part scheme: content
Part host: com.wjr.example1
Part port: 121
Part path: files
"
所以..我怎么能匹配包含任何主机“国防部”(例如器官功能障碍综合征,模块,modarchive,modheaven等) ?
是的,令人沮丧的是你无法匹配URL参数。如果我可以在'?'之后添加一个模式在PHP网址中,我所有的麻烦都会解决。希望这一个网站是我必须迎合的例外:) – SparkyNZ