/spoil {
var %input = $$1-
var %spoilStart = 2,2
var %spoilEnd =
/say $regsubex(%input, /\|\|([^\|]+)\|\|/g, %spoilStart $+ \1 $+ %spoilEnd)
}