Currently the sed function is implemented as a global, case insensitive one that doesn't really like regexps. Should use Seraku's JS sed function