s=gets;1 while s.sub!(/.(\d+).B@([.~]*)(\[?(\d+)((:.)|.B@(?!.*:)))/){$2+($6?".":",")*$3.size+"[#{eval$1+"+"+$4}]B@"};$><<s
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page