Rewrite sed regex to identify sed requests

Fixes #20