function main(input) {
  try {
    input.text = input.text.replace(re, convert);
  } catch (err) {
    input.postError(err);
    return;
  }
}
{
    "api":1,
    "name":"Well-Known Text to Binary",
    "description":"Converts your WKT to little endian WKB (hex encoded), wkt2wkb",
    "author":"Mikael Brassman (Twitter: @spoike)",
    "icon":"globe",
    "tags":"wkb,convert,wkt,binary,little endian,hex,wkt2wkb"
  }