SHARE
TWEET

/pastecode

Seb May 7th, 2011 (edited) 365 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #/pastecode alias made by sanitarium on undernet
  2. ################################################
  3.  
  4. alias pastecode {
  5.   var %r1 = /(\$[^\s\(\),\x03]+)/g
  6.   var %r2 = /([\(\)\[\]])/g
  7.   var %r3 = /([,\:><=&|!])/g
  8.   var %r4 = /(%[^\s\(\),\x03]+)/g
  9.   var %r5 = /([\{\}])/g  
  10.   var %r6 = /(?:^|\G)(\s)/g
  11.   var %r7 = /(#[^\s\(\),\x03]*)/g
  12.   var %loop = 1, %end = $cb(0)
  13.   while (%loop <= %end) {
  14.     say $regsubex($regsubex($regsubex($regsubex($regsubex($regsubex($regsubex($cb(%loop),%r1,03\1),%r2,12\1),%r3,07\1),%r4,10\1),%r5,13\1),%r6,\1),%r7,04\1)
  15.     inc %loop 1
  16.   }
  17. }
RAW Paste Data
Top