It would also be helpful to have a pattern for blank-like strings. UIPasteboard.hasStrings returns false if .strings is nil, which is good. But it returns true if it's an empty/non-nil string ("") or whitespace-only. UIPasteboard.hasStrings seems mostly useless in those cases, from a practical standpoint, even though it's technically correct.
Or is there already some way to determine this?
EDIT:
For anyone interested, the "probableWebSearch" pattern seems to cover this already. The documentation doesn't state this explicitly, but this pattern seems to match anything that's not blank/whitespace-only.