More scalaish version of pattern extraction
More scalaish version of pattern extraction

Signed-off-by: Arthur Gautier <f88c5e35ba2b44ad8184caf58e04d88fd477a72f@gandi.net>

byxorna/collins,tumblr/collins,discordianfish/collins,tumblr/collins,tumblr/collins,byxorna/collins,discordianfish/collins,tumblr/collins,discordianfish/collins,byxorna/collins,byxorna/collins,defect/collins,defect/collins,defect/collins,tumblr/collins,byxorna/collins,defect/collins,discordianfish/collins,tumblr/collins,defect/collins,byxorna/collins,defect/collins,discordianfish/collins,discordianfish/collins