URL 模式在 Fluid app 中非常方便(OS X 的站点特定浏览器)支持某些指定 URL 的脚本/样式,例如:
如stated on the official website :
In the "Pattern" table below, you should add a pattern for any URL which you want to your Fluid App to visit. Star ("*") is a special character in this table. Star means "match anything here", and is a powerful way to easily include or exclude very large groups of URL patterns.
- 我们可以使用其他字符,例如“?”除了用“*”来匹配 URL 之外?
- 可以使用正则表达式代替吗?
最佳答案
这里是 Fluid 的开发者。
更新: 是的!现在您可以使用简单的通配符模式或完整的正则表达式模式。
在通配符模式中,星号(“*”)是一种特殊的通配符,意思是“匹配此处的任何内容”,并且是轻松包含或排除大量 URL 模式的强大方法。
或者,您可以使用完整的正则表达式模式来代替通配符模式,方法是将您的网址模式括在正斜杠/中,例如:/http://google.com/.+/。
关于regex - 正则表达式可以用于 Fluid 应用程序中的 URL 模式吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15716077/