2

URL patterns are very handy in Fluid app (a Site-specific Browser for OS X) to support scripts/styles for certain specified URLs, for example: Userstyles/Userscripts Window in Fluid app

As 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.

  1. Can we use other characters such as "?" other than "*" to match the URLs?
  2. Can regular expression be used instead?
Community
  • 1
  • 1
Zhipei
  • 76
  • 5
  • 1
    Probably not, or they would have said so. **Should be dirt simple for you to test** if you are already running Fluid (hint, hint). – Brock Adams Mar 30 '13 at 08:31
  • I tried with nothing happening. Ask so because I am not sure whether I get the wrong RegExp or the app can't support it. – Zhipei Mar 30 '13 at 12:14
  • Try with `*google.com*`, then `*go?gle.com*`, then `*g[og]+le.com*`. The first gives desired/baseline behavior, the second two answer your question. – Brock Adams Mar 30 '13 at 12:36

1 Answers1

3

Developer of Fluid here.

Update: Yes! Now you can use either simple Wildcard Patterns or full Regular Expression Patterns.

In Wildcard Patterns, star ("*") is a special Wildcard character that means "match anything here", and is a powerful way to easily include or exclude very large groups of URL patterns.

Alternatively, you can use full Regular Expression Patterns instead of Wildcard Patterns by wrapping your URL pattern in forward slashes / like: /http://google.com/.+/.

Full details on the Whitelist feature in Fluid are here.

Community
  • 1
  • 1
Todd Ditchendorf
  • 11,217
  • 14
  • 69
  • 123
  • Glad to know that. Would you please also add a **Fluid App** tag here? I don't have the privilege. – Zhipei Apr 07 '13 at 07:05
  • Oh, hey Todd, I saw in a fairly recent Fluid update, in the release notes, something about the ability to **exclude** URLs. Do I simply put a `-` in front of the URL? – Sockie Nov 25 '13 at 20:48