#!/bin/sh
#
# regex-escape PATTERN - print escaped version of PATTERN, according to regex(7)

echo "$*" | sed 's/[\^.[$()|*+?{\\]/\\&/g'
