[quote]
I'm trying to write a body rule that will catch an email exactly containing any
number of characters up to 15, followed by a URI, followed by any number of
characters, up to 15. My attempt has failed miserably, and hoped someone could
help.
[/quote]
This should work for you:
Body LOC_SHORT_BODY_URI /^.{0,15}(?:http\:\/\/.{1,}).{0,15}$/i
But if the messages you are testing against are composed in HTML, this may not
work.
Some resources you may find helpful:
http://regex101.com/
http://wiki.apache.org/spamassassin/WritingRules