Anti-nuisance lawsuit warning: The purpose of these notes is to remind me, Zoegond, of stuff or to help me work stuff out. They may contain mistakes.

Quick

  • ($a, $b....) = unpack("A2A7...", $packed)
  • push( array, list )

Thursday, April 5, 2012

polipo forbidden regex

polipo expects POSIX regular expressions in its forbiddenFile.

POSIX regex syntax does not have lookaheads or any of those forms that start with (? . Sadly this means that you can't use them to forbid 'all except /regex/', ie to allow URLs rather than forbid others.

Good general regex syntax comparison chart here: http://www.greenend.org.uk/rjk/tech/regexp.html

Followers

Blog Archive