On 8/11/2021 8:05 AM, Kenneth Porter wrote:
>
> BTW, does SA permit use of Perl-style regex delimiters to avoid
> leaning toothpick syndrome?
>
> https://en.wikipedia.org/wiki/Leaning_toothpick_syndrome
>
Answering my own question, I see it used in this rule:
uri __IMGUR_IMG
m,^https?://(?:[^.]+\.)?imgur\.com/[a-z0-9]{7}\.(?:png|gif|jpe?g)$,i
I see a dozen rules in the latest SA rule update using the m<delimiter>
scheme to avoid having to escape slashes in a uri. The result is
significantly more readable.
>
> BTW, does SA permit use of Perl-style regex delimiters to avoid
> leaning toothpick syndrome?
>
> https://en.wikipedia.org/wiki/Leaning_toothpick_syndrome
>
Answering my own question, I see it used in this rule:
uri __IMGUR_IMG
m,^https?://(?:[^.]+\.)?imgur\.com/[a-z0-9]{7}\.(?:png|gif|jpe?g)$,i
I see a dozen rules in the latest SA rule update using the m<delimiter>
scheme to avoid having to escape slashes in a uri. The result is
significantly more readable.