Ned Slider wrote:
Henrik K wrote:
To be more specific:
Hostname may end optionally to a dot, with :port, /slash or nothing
following
m{^https?://[^.:/]+\.[^.:/]+\.?(?:$|[:/])}
Could anyone please provide a reference or explanation of the use of
m{blah} in spamassassin uri rules?
Thanks
Answering my own question courtesy of a previous post (below) by Matt
Kettler:
[quote]
They are the delimiters. Instead of using a pair of / to delimit the
regex they used curly braces. It's somewhat rare to see this done, but
it's sometimes convenient.
When you prefix with the match operator (that m at the beginning) you
can use almost any character you want as a delimiter instead of forward
slash. This way you can do http:// without having to escape it as
http:\/\/ like you would in most normal / delimited rule.
[/quote]
Thanks Matt!