#import math
^1([^$]*?)[^\[\]<>,.+-]/1$1/^1([\[\]<>,.+-]*)(\$[^$]*)$/2'$1\$$2/^1([\[\]<>,.+-]*)$/2'$1\$\$/^2([^$]*)'([()<>,.+-])/2$1$2'/^2([^()$]*)'\[/2$1'\(/^2([^()$]*)'\]/2$1'/^2([^$]*?)(=*)\(([^()$]*)'\[/2$1$2($3$2=('/^2([^$]*?)(=*)\(([^()$]*)'\]/2$1$2($3$2)'/^2([^$]*?)(=*)=\)([^()$]*)'\]/2$1$2=)$3$2)'/^2([^$]*?)(=*)\)([^()$]*)'\[/2$1$2)$3$2('/^2([^']*)'\$/3'\$'$1\$/^4([_,']*\$[^']*)'([^$])/3$1$2'/^3([_,]*)'([^$]*)\$([^']*)'\+/4$1'_$2\$$3'+/_{256}//^3([_,]*)'_([^$]*)\$([^']*)'-/4$1'$2\$$3'-/^3([_,]*)'(?=[^_])([^$]*)\$([^']*)'-/4$1'u<255>$2\$$3'-/^3([_,]*)'(_*),?([_,]*)\$([^']*)'>/4$1$2,'$3\$$4'>/^3([_,]*?)(_*),?'([_,]*)\$([^']*)'</4$1'$2,$3\$$4'</^3([_,]*?)'(_*)([_,]*)\$([^']*)'\.([^$]*)\$([^$]*)/4$1'$2$3\$$4'.$5\$$6$2,/^3([_,]*?)'(_*)([_,]*)\$([^']*)',([^$]*\$[^$]*)\$([\x00-\xFF])/5$1':$6$3\$$4',$5\$/^3([_,]*?)'(_*)([_,]*)\$([^']*)',([^$]*\$[^$]*)\$$/4$1'$3\$$4',$5\$/^5([_,]*)':\x00/4$1'u<0>/^5([_,]*)':\x01/4$1'u<1>/^5([_,]*)':\x02/4$1'u<2>/^5([_,]*)':\x03/4$1'u<3>/^5([_,]*)':\x04/4$1'u<4>/^5([_,]*)':\x05/4$1'u<5>/^5([_,]*)':\x06/4$1'u<6>/^5([_,]*)':\x07/4$1'u<7>/^5([_,]*)':\x08/4$1'u<8>/^5([_,]*)':\x09/4$1'u<9>/^5([_,]*)':\x0A/4$1'u<10>/^5([_,]*)':\x0B/4$1'u<11>/^5([_,]*)':\x0C/4$1'u<12>/^5([_,]*)':\x0D/4$1'u<13>/^5([_,]*)':\x0E/4$1'u<14>/^5([_,]*)':\x0F/4$1'u<15>/^5([_,]*)':\x10/4$1'u<16>/^5([_,]*)':\x11/4$1'u<17>/^5([_,]*)':\x12/4$1'u<18>/^5([_,]*)':\x13/4$1'u<19>/^5([_,]*)':\x14/4$1'u<20>/^5([_,]*)':\x15/4$1'u<21>/^5([_,]*)':\x16/4$1'u<22>/^5([_,]*)':\x17/4$1'u<23>/^5([_,]*)':\x18/4$1'u<24>/^5([_,]*)':\x19/4$1'u<25>/^5([_,]*)':\x1A/4$1'u<26>/^5([_,]*)':\x1B/4$1'u<27>/^5([_,]*)':\x1C/4$1'u<28>/^5([_,]*)':\x1D/4$1'u<29>/^5([_,]*)':\x1E/4$1'u<30>/^5([_,]*)':\x1F/4$1'u<31>/^5([_,]*)':\x20/4$1'u<32>/^5([_,]*)':\x21/4$1'u<33>/^5([_,]*)':\x22/4$1'u<34>/^5([_,]*)':\x23/4$1'u<35>/^5([_,]*)':\x24/4$1'u<36>/^5([_,]*)':\x25/4$1'u<37>/^5([_,]*)':\x26/4$1'u<38>/^5([_,]*)':\x27/4$1'u<39>/^5([_,]*)':\x28/4$1'u<40>/^5([_,]*)':\x29/4$1'u<41>/^5([_,]*)':\x2A/4$1'u<42>/^5([_,]*)':\x2B/4$1'u<43>/^5([_,]*)':\x2C/4$1'u<44>/^5([_,]*)':\x2D/4$1'u<45>/^5([_,]*)':\x2E/4$1'u<46>/^5([_,]*)':\x2F/4$1'u<47>/^5([_,]*)':\x30/4$1'u<48>/^5([_,]*)':\x31/4$1'u<49>/^5([_,]*)':\x32/4$1'u<50>/^5([_,]*)':\x33/4$1'u<51>/^5([_,]*)':\x34/4$1'u<52>/^5([_,]*)':\x35/4$1'u<53>/^5([_,]*)':\x36/4$1'u<54>/^5([_,]*)':\x37/4$1'u<55>/^5([_,]*)':\x38/4$1'u<56>/^5([_,]*)':\x39/4$1'u<57>/^5([_,]*)':\x3A/4$1'u<58>/^5([_,]*)':\x3B/4$1'u<59>/^5([_,]*)':\x3C/4$1'u<60>/^5([_,]*)':\x3D/4$1'u<61>/^5([_,]*)':\x3E/4$1'u<62>/^5([_,]*)':\x3F/4$1'u<63>/^5([_,]*)':\x40/4$1'u<64>/^5([_,]*)':\x41/4$1'u<65>/^5([_,]*)':\x42/4$1'u<66>/^5([_,]*)':\x43/4$1'u<67>/^5([_,]*)':\x44/4$1'u<68>/^5([_,]*)':\x45/4$1'u<69>/^5([_,]*)':\x46/4$1'u<70>/^5([_,]*)':\x47/4$1'u<71>/^5([_,]*)':\x48/4$1'u<72>/^5([_,]*)':\x49/4$1'u<73>/^5([_,]*)':\x4A/4$1'u<74>/^5([_,]*)':\x4B/4$1'u<75>/^5([_,]*)':\x4C/4$1'u<76>/^5([_,]*)':\x4D/4$1'u<77>/^5([_,]*)':\x4E/4$1'u<78>/^5([_,]*)':\x4F/4$1'u<79>/^5([_,]*)':\x50/4$1'u<80>/^5([_,]*)':\x51/4$1'u<81>/^5([_,]*)':\x52/4$1'u<82>/^5([_,]*)':\x53/4$1'u<83>/^5([_,]*)':\x54/4$1'u<84>/^5([_,]*)':\x55/4$1'u<85>/^5([_,]*)':\x56/4$1'u<86>/^5([_,]*)':\x57/4$1'u<87>/^5([_,]*)':\x58/4$1'u<88>/^5([_,]*)':\x59/4$1'u<89>/^5([_,]*)':\x5A/4$1'u<90>/^5([_,]*)':\x5B/4$1'u<91>/^5([_,]*)':\x5C/4$1'u<92>/^5([_,]*)':\x5D/4$1'u<93>/^5([_,]*)':\x5E/4$1'u<94>/^5([_,]*)':\x5F/4$1'u<95>/^5([_,]*)':\x60/4$1'u<96>/^5([_,]*)':\x61/4$1'u<97>/^5([_,]*)':\x62/4$1'u<98>/^5([_,]*)':\x63/4$1'u<99>/^5([_,]*)':\x64/4$1'u<100>/^5([_,]*)':\x65/4$1'u<101>/^5([_,]*)':\x66/4$1'u<102>/^5([_,]*)':\x67/4$1'u<103>/^5([_,]*)':\x68/4$1'u<104>/^5([_,]*)':\x69/4$1'u<105>/^5([_,]*)':\x6A/4$1'u<106>/^5([_,]*)':\x6B/4$1'u<107>/^5([_,]*)':\x6C/4$1'u<108>/^5([_,]*)':\x6D/4$1'u<109>/^5([_,]*)':\x6E/4$1'u<110>/^5([_,]*)':\x6F/4$1'u<111>/^5([_,]*)':\x70/4$1'u<112>/^5([_,]*)':\x71/4$1'u<113>/^5([_,]*)':\x72/4$1'u<114>/^5([_,]*)':\x73/4$1'u<115>/^5([_,]*)':\x74/4$1'u<116>/^5([_,]*)':\x75/4$1'u<117>/^5([_,]*)':\x76/4$1'u<118>/^5([_,]*)':\x77/4$1'u<119>/^5([_,]*)':\x78/4$1'u<120>/^5([_,]*)':\x79/4$1'u<121>/^5([_,]*)':\x7A/4$1'u<122>/^5([_,]*)':\x7B/4$1'u<123>/^5([_,]*)':\x7C/4$1'u<124>/^5([_,]*)':\x7D/4$1'u<125>/^5([_,]*)':\x7E/4$1'u<126>/^5([_,]*)':\x7F/4$1'u<127>/^5([_,]*)':\x80/4$1'u<128>/^5([_,]*)':\x81/4$1'u<129>/^5([_,]*)':\x82/4$1'u<130>/^5([_,]*)':\x83/4$1'u<131>/^5([_,]*)':\x84/4$1'u<132>/^5([_,]*)':\x85/4$1'u<133>/^5([_,]*)':\x86/4$1'u<134>/^5([_,]*)':\x87/4$1'u<135>/^5([_,]*)':\x88/4$1'u<136>/^5([_,]*)':\x89/4$1'u<137>/^5([_,]*)':\x8A/4$1'u<138>/^5([_,]*)':\x8B/4$1'u<139>/^5([_,]*)':\x8C/4$1'u<140>/^5([_,]*)':\x8D/4$1'u<141>/^5([_,]*)':\x8E/4$1'u<142>/^5([_,]*)':\x8F/4$1'u<143>/^5([_,]*)':\x90/4$1'u<144>/^5([_,]*)':\x91/4$1'u<145>/^5([_,]*)':\x92/4$1'u<146>/^5([_,]*)':\x93/4$1'u<147>/^5([_,]*)':\x94/4$1'u<148>/^5([_,]*)':\x95/4$1'u<149>/^5([_,]*)':\x96/4$1'u<150>/^5([_,]*)':\x97/4$1'u<151>/^5([_,]*)':\x98/4$1'u<152>/^5([_,]*)':\x99/4$1'u<153>/^5([_,]*)':\x9A/4$1'u<154>/^5([_,]*)':\x9B/4$1'u<155>/^5([_,]*)':\x9C/4$1'u<156>/^5([_,]*)':\x9D/4$1'u<157>/^5([_,]*)':\x9E/4$1'u<158>/^5([_,]*)':\x9F/4$1'u<159>/^5([_,]*)':\xA0/4$1'u<160>/^5([_,]*)':\xA1/4$1'u<161>/^5([_,]*)':\xA2/4$1'u<162>/^5([_,]*)':\xA3/4$1'u<163>/^5([_,]*)':\xA4/4$1'u<164>/^5([_,]*)':\xA5/4$1'u<165>/^5([_,]*)':\xA6/4$1'u<166>/^5([_,]*)':\xA7/4$1'u<167>/^5([_,]*)':\xA8/4$1'u<168>/^5([_,]*)':\xA9/4$1'u<169>/^5([_,]*)':\xAA/4$1'u<170>/^5([_,]*)':\xAB/4$1'u<171>/^5([_,]*)':\xAC/4$1'u<172>/^5([_,]*)':\xAD/4$1'u<173>/^5([_,]*)':\xAE/4$1'u<174>/^5([_,]*)':\xAF/4$1'u<175>/^5([_,]*)':\xB0/4$1'u<176>/^5([_,]*)':\xB1/4$1'u<177>/^5([_,]*)':\xB2/4$1'u<178>/^5([_,]*)':\xB3/4$1'u<179>/^5([_,]*)':\xB4/4$1'u<180>/^5([_,]*)':\xB5/4$1'u<181>/^5([_,]*)':\xB6/4$1'u<182>/^5([_,]*)':\xB7/4$1'u<183>/^5([_,]*)':\xB8/4$1'u<184>/^5([_,]*)':\xB9/4$1'u<185>/^5([_,]*)':\xBA/4$1'u<186>/^5([_,]*)':\xBB/4$1'u<187>/^5([_,]*)':\xBC/4$1'u<188>/^5([_,]*)':\xBD/4$1'u<189>/^5([_,]*)':\xBE/4$1'u<190>/^5([_,]*)':\xBF/4$1'u<191>/^5([_,]*)':\xC0/4$1'u<192>/^5([_,]*)':\xC1/4$1'u<193>/^5([_,]*)':\xC2/4$1'u<194>/^5([_,]*)':\xC3/4$1'u<195>/^5([_,]*)':\xC4/4$1'u<196>/^5([_,]*)':\xC5/4$1'u<197>/^5([_,]*)':\xC6/4$1'u<198>/^5([_,]*)':\xC7/4$1'u<199>/^5([_,]*)':\xC8/4$1'u<200>/^5([_,]*)':\xC9/4$1'u<201>/^5([_,]*)':\xCA/4$1'u<202>/^5([_,]*)':\xCB/4$1'u<203>/^5([_,]*)':\xCC/4$1'u<204>/^5([_,]*)':\xCD/4$1'u<205>/^5([_,]*)':\xCE/4$1'u<206>/^5([_,]*)':\xCF/4$1'u<207>/^5([_,]*)':\xD0/4$1'u<208>/^5([_,]*)':\xD1/4$1'u<209>/^5([_,]*)':\xD2/4$1'u<210>/^5([_,]*)':\xD3/4$1'u<211>/^5([_,]*)':\xD4/4$1'u<212>/^5([_,]*)':\xD5/4$1'u<213>/^5([_,]*)':\xD6/4$1'u<214>/^5([_,]*)':\xD7/4$1'u<215>/^5([_,]*)':\xD8/4$1'u<216>/^5([_,]*)':\xD9/4$1'u<217>/^5([_,]*)':\xDA/4$1'u<218>/^5([_,]*)':\xDB/4$1'u<219>/^5([_,]*)':\xDC/4$1'u<220>/^5([_,]*)':\xDD/4$1'u<221>/^5([_,]*)':\xDE/4$1'u<222>/^5([_,]*)':\xDF/4$1'u<223>/^5([_,]*)':\xE0/4$1'u<224>/^5([_,]*)':\xE1/4$1'u<225>/^5([_,]*)':\xE2/4$1'u<226>/^5([_,]*)':\xE3/4$1'u<227>/^5([_,]*)':\xE4/4$1'u<228>/^5([_,]*)':\xE5/4$1'u<229>/^5([_,]*)':\xE6/4$1'u<230>/^5([_,]*)':\xE7/4$1'u<231>/^5([_,]*)':\xE8/4$1'u<232>/^5([_,]*)':\xE9/4$1'u<233>/^5([_,]*)':\xEA/4$1'u<234>/^5([_,]*)':\xEB/4$1'u<235>/^5([_,]*)':\xEC/4$1'u<236>/^5([_,]*)':\xED/4$1'u<237>/^5([_,]*)':\xEE/4$1'u<238>/^5([_,]*)':\xEF/4$1'u<239>/^5([_,]*)':\xF0/4$1'u<240>/^5([_,]*)':\xF1/4$1'u<241>/^5([_,]*)':\xF2/4$1'u<242>/^5([_,]*)':\xF3/4$1'u<243>/^5([_,]*)':\xF4/4$1'u<244>/^5([_,]*)':\xF5/4$1'u<245>/^5([_,]*)':\xF6/4$1'u<246>/^5([_,]*)':\xF7/4$1'u<247>/^5([_,]*)':\xF8/4$1'u<248>/^5([_,]*)':\xF9/4$1'u<249>/^5([_,]*)':\xFA/4$1'u<250>/^5([_,]*)':\xFB/4$1'u<251>/^5([_,]*)':\xFC/4$1'u<252>/^5([_,]*)':\xFD/4$1'u<253>/^5([_,]*)':\xFE/4$1'u<254>/^5([_,]*)':\xFF/4$1'u<255>/^3([_,]*)'(_+)([,_]*)\$([^']*)'(=*)\(/4$1'$2$3\$$4$5'(/^3([_,]*)'(?!_)([,_]*)\$([^']*)'(=*)\(([^$]*?)(?<!=)\4\)/4$1'$2\$$3$4($5$4')/^3([_,]*)'(_+)([,_]*)\$([^']*)(?<!=)(=*)\(([^']*?)'\5\)/4$1'$2$3\$$4$5'($6$5)/^3([_,]*)'(?!_)([,_]*)\$([^']*)(?<!=)(=*)\(([^']*?)'\4\)/4$1'$2\$$3$4($5$4')/^3['_,]*\$[^$]*'\$([_,]*)\$[^\x00-\xFF]*$/6$1\$/^6_{0,31},([_,]*)\$([\x00-\xff]*)/6$1\$$2/^6_{32},([_,]*)\$([\x00-\xff]*)/6$1\$$2 /^6_{33},([_,]*)\$([\x00-\xff]*)/6$1\$$2!/^6_{34},([_,]*)\$([\x00-\xff]*)/6$1\$$2"/^6_{35},([_,]*)\$([\x00-\xff]*)/6$1\$$2\#/^6_{36},([_,]*)\$([\x00-\xff]*)/6$1\$$2\$/^6_{37},([_,]*)\$([\x00-\xff]*)/6$1\$$2%/^6_{38},([_,]*)\$([\x00-\xff]*)/6$1\$$2&/^6_{39},([_,]*)\$([\x00-\xff]*)/6$1\$$2'/^6_{40},([_,]*)\$([\x00-\xff]*)/6$1\$$2(/^6_{41},([_,]*)\$([\x00-\xff]*)/6$1\$$2)/^6_{42},([_,]*)\$([\x00-\xff]*)/6$1\$$2*/^6_{43},([_,]*)\$([\x00-\xff]*)/6$1\$$2+/^6_{44},([_,]*)\$([\x00-\xff]*)/6$1\$$2,/^6_{45},([_,]*)\$([\x00-\xff]*)/6$1\$$2-/^6_{46},([_,]*)\$([\x00-\xff]*)/6$1\$$2./^6_{47},([_,]*)\$([\x00-\xff]*)/6$1\$$2\//^6_{48},([_,]*)\$([\x00-\xff]*)/6$1\$$20/^6_{49},([_,]*)\$([\x00-\xff]*)/6$1\$$21/^6_{50},([_,]*)\$([\x00-\xff]*)/6$1\$$22/^6_{51},([_,]*)\$([\x00-\xff]*)/6$1\$$23/^6_{52},([_,]*)\$([\x00-\xff]*)/6$1\$$24/^6_{53},([_,]*)\$([\x00-\xff]*)/6$1\$$25/^6_{54},([_,]*)\$([\x00-\xff]*)/6$1\$$26/^6_{55},([_,]*)\$([\x00-\xff]*)/6$1\$$27/^6_{56},([_,]*)\$([\x00-\xff]*)/6$1\$$28/^6_{57},([_,]*)\$([\x00-\xff]*)/6$1\$$29/^6_{58},([_,]*)\$([\x00-\xff]*)/6$1\$$2:/^6_{59},([_,]*)\$([\x00-\xff]*)/6$1\$$2;/^6_{60},([_,]*)\$([\x00-\xff]*)/6$1\$$2</^6_{61},([_,]*)\$([\x00-\xff]*)/6$1\$$2=/^6_{62},([_,]*)\$([\x00-\xff]*)/6$1\$$2>/^6_{63},([_,]*)\$([\x00-\xff]*)/6$1\$$2?/^6_{64},([_,]*)\$([\x00-\xff]*)/6$1\$$2@/^6_{65},([_,]*)\$([\x00-\xff]*)/6$1\$$2A/^6_{66},([_,]*)\$([\x00-\xff]*)/6$1\$$2B/^6_{67},([_,]*)\$([\x00-\xff]*)/6$1\$$2C/^6_{68},([_,]*)\$([\x00-\xff]*)/6$1\$$2D/^6_{69},([_,]*)\$([\x00-\xff]*)/6$1\$$2E/^6_{70},([_,]*)\$([\x00-\xff]*)/6$1\$$2F/^6_{71},([_,]*)\$([\x00-\xff]*)/6$1\$$2G/^6_{72},([_,]*)\$([\x00-\xff]*)/6$1\$$2H/^6_{73},([_,]*)\$([\x00-\xff]*)/6$1\$$2I/^6_{74},([_,]*)\$([\x00-\xff]*)/6$1\$$2J/^6_{75},([_,]*)\$([\x00-\xff]*)/6$1\$$2K/^6_{76},([_,]*)\$([\x00-\xff]*)/6$1\$$2L/^6_{77},([_,]*)\$([\x00-\xff]*)/6$1\$$2M/^6_{78},([_,]*)\$([\x00-\xff]*)/6$1\$$2N/^6_{79},([_,]*)\$([\x00-\xff]*)/6$1\$$2O/^6_{80},([_,]*)\$([\x00-\xff]*)/6$1\$$2P/^6_{81},([_,]*)\$([\x00-\xff]*)/6$1\$$2Q/^6_{82},([_,]*)\$([\x00-\xff]*)/6$1\$$2R/^6_{83},([_,]*)\$([\x00-\xff]*)/6$1\$$2S/^6_{84},([_,]*)\$([\x00-\xff]*)/6$1\$$2T/^6_{85},([_,]*)\$([\x00-\xff]*)/6$1\$$2U/^6_{86},([_,]*)\$([\x00-\xff]*)/6$1\$$2V/^6_{87},([_,]*)\$([\x00-\xff]*)/6$1\$$2W/^6_{88},([_,]*)\$([\x00-\xff]*)/6$1\$$2X/^6_{89},([_,]*)\$([\x00-\xff]*)/6$1\$$2Y/^6_{90},([_,]*)\$([\x00-\xff]*)/6$1\$$2Z/^6_{91},([_,]*)\$([\x00-\xff]*)/6$1\$$2[/^6_{92},([_,]*)\$([\x00-\xff]*)/6$1\$$2\\/^6_{93},([_,]*)\$([\x00-\xff]*)/6$1\$$2]/^6_{94},([_,]*)\$([\x00-\xff]*)/6$1\$$2^/^6_{95},([_,]*)\$([\x00-\xff]*)/6$1\$$2_/^6_{96},([_,]*)\$([\x00-\xff]*)/6$1\$$2`/^6_{97},([_,]*)\$([\x00-\xff]*)/6$1\$$2a/^6_{98},([_,]*)\$([\x00-\xff]*)/6$1\$$2b/^6_{99},([_,]*)\$([\x00-\xff]*)/6$1\$$2c/^6_{100},([_,]*)\$([\x00-\xff]*)/6$1\$$2d/^6_{101},([_,]*)\$([\x00-\xff]*)/6$1\$$2e/^6_{102},([_,]*)\$([\x00-\xff]*)/6$1\$$2f/^6_{103},([_,]*)\$([\x00-\xff]*)/6$1\$$2g/^6_{104},([_,]*)\$([\x00-\xff]*)/6$1\$$2h/^6_{105},([_,]*)\$([\x00-\xff]*)/6$1\$$2i/^6_{106},([_,]*)\$([\x00-\xff]*)/6$1\$$2j/^6_{107},([_,]*)\$([\x00-\xff]*)/6$1\$$2k/^6_{108},([_,]*)\$([\x00-\xff]*)/6$1\$$2l/^6_{109},([_,]*)\$([\x00-\xff]*)/6$1\$$2m/^6_{110},([_,]*)\$([\x00-\xff]*)/6$1\$$2n/^6_{111},([_,]*)\$([\x00-\xff]*)/6$1\$$2o/^6_{112},([_,]*)\$([\x00-\xff]*)/6$1\$$2p/^6_{113},([_,]*)\$([\x00-\xff]*)/6$1\$$2q/^6_{114},([_,]*)\$([\x00-\xff]*)/6$1\$$2r/^6_{115},([_,]*)\$([\x00-\xff]*)/6$1\$$2s/^6_{116},([_,]*)\$([\x00-\xff]*)/6$1\$$2t/^6_{117},([_,]*)\$([\x00-\xff]*)/6$1\$$2u/^6_{118},([_,]*)\$([\x00-\xff]*)/6$1\$$2v/^6_{119},([_,]*)\$([\x00-\xff]*)/6$1\$$2w/^6_{120},([_,]*)\$([\x00-\xff]*)/6$1\$$2x/^6_{121},([_,]*)\$([\x00-\xff]*)/6$1\$$2y/^6_{122},([_,]*)\$([\x00-\xff]*)/6$1\$$2z/^6_{123},([_,]*)\$([\x00-\xff]*)/6$1\$$2{/^6_{124},([_,]*)\$([\x00-\xff]*)/6$1\$$2|/^6_{125},([_,]*)\$([\x00-\xff]*)/6$1\$$2}/^6_{126},([_,]*)\$([\x00-\xff]*)/6$1\$$2~/^6_{127}_*,([_,]*)\$([\x00-\xff]*)/6$1\$$2/^6\$/=/1#input
Try it online!
With Comments
#import math
# Santize Input
# Keeps removing characters from the code that aren't the standard BF chars
^1([^$]*?)[^\[\]<>,.+-]/1$1/
^1([\[\]<>,.+-]*)(\$[^$]*)$/2'$1\$$2/
^1([\[\]<>,.+-]*)$/2'$1\$\$/
# Pair up brackets
# Bit by bit replaces square brackets with parentheticals, counting depth by proceeding them with =, eg.
# [a[b]c] becomes [a=[b=]c]
# This is vital for loops later.
^2([^$]*)'([()<>,.+-])/2$1$2'/
^2([^()$]*)'\[/2$1'\(/
^2([^()$]*)'\]/2$1'/
^2([^$]*?)(=*)\(([^()$]*)'\[/2$1$2($3$2=('/
^2([^$]*?)(=*)\(([^()$]*)'\]/2$1$2($3$2)'/
^2([^$]*?)(=*)=\)([^()$]*)'\]/2$1$2=)$3$2)'/
^2([^$]*?)(=*)\)([^()$]*)'\[/2$1$2)$3$2('/
# Afterwards, sets up the memory in the form of:
# 3aTAPE$CODE$OUTPUT$INPUT
^2([^']*)'\$/3'\$'$1\$/
# Alternator. This increments the instruction pointer by one after an instruction is ran.
# We use the states 3a and 3b to ensure exactly one instruction is run per tick
^4([_,']*\$[^']*)'([^$])/3$1$2'/
# +
^3([_,]*)'([^$]*)\$([^']*)'\+/4$1'_$2\$$3'+/
_{256}//
# - Has to manually wrap.
^3([_,]*)'_([^$]*)\$([^']*)'-/4$1'$2\$$3'-/
^3([_,]*)'(?=[^_])([^$]*)\$([^']*)'-/4$1'u<255>$2\$$3'-/
# >
^3([_,]*)'(_*),?([_,]*)\$([^']*)'>/4$1$2,'$3\$$4'>/
# <
^3([_,]*?)(_*),?'([_,]*)\$([^']*)'</4$1'$2,$3\$$4'</
# .
^3([_,]*?)'(_*)([_,]*)\$([^']*)'\.([^$]*)\$([^$]*)/4$1'$2$3\$$4'.$5\$$6$2,/
# ,
^3([_,]*?)'(_*)([_,]*)\$([^']*)',([^$]*\$[^$]*)\$([\x00-\xFF])/5$1':$6$3\$$4',$5\$/
^3([_,]*?)'(_*)([_,]*)\$([^']*)',([^$]*\$[^$]*)\$$/4$1'$3\$$4',$5\$/
^5([_,]*)':\x00/4$1'u<$i>/
^5([_,]*)':\x01/4$1'u<$i>/
^5([_,]*)':\x02/4$1'u<$i>/
^5([_,]*)':\x03/4$1'u<$i>/
^5([_,]*)':\x04/4$1'u<$i>/
^5([_,]*)':\x05/4$1'u<$i>/
^5([_,]*)':\x06/4$1'u<$i>/
^5([_,]*)':\x07/4$1'u<$i>/
^5([_,]*)':\x08/4$1'u<$i>/
^5([_,]*)':\x09/4$1'u<$i>/
^5([_,]*)':\x0A/4$1'u<$i>/
^5([_,]*)':\x0B/4$1'u<$i>/
^5([_,]*)':\x0C/4$1'u<$i>/
^5([_,]*)':\x0D/4$1'u<$i>/
^5([_,]*)':\x0E/4$1'u<$i>/
^5([_,]*)':\x0F/4$1'u<$i>/
^5([_,]*)':\x10/4$1'u<$i>/
^5([_,]*)':\x11/4$1'u<$i>/
^5([_,]*)':\x12/4$1'u<$i>/
^5([_,]*)':\x13/4$1'u<$i>/
^5([_,]*)':\x14/4$1'u<$i>/
^5([_,]*)':\x15/4$1'u<$i>/
^5([_,]*)':\x16/4$1'u<$i>/
^5([_,]*)':\x17/4$1'u<$i>/
^5([_,]*)':\x18/4$1'u<$i>/
^5([_,]*)':\x19/4$1'u<$i>/
^5([_,]*)':\x1A/4$1'u<$i>/
^5([_,]*)':\x1B/4$1'u<$i>/
^5([_,]*)':\x1C/4$1'u<$i>/
^5([_,]*)':\x1D/4$1'u<$i>/
^5([_,]*)':\x1E/4$1'u<$i>/
^5([_,]*)':\x1F/4$1'u<$i>/
^5([_,]*)':\x20/4$1'u<$i>/
^5([_,]*)':\x21/4$1'u<$i>/
^5([_,]*)':\x22/4$1'u<$i>/
^5([_,]*)':\x23/4$1'u<$i>/
^5([_,]*)':\x24/4$1'u<$i>/
^5([_,]*)':\x25/4$1'u<$i>/
^5([_,]*)':\x26/4$1'u<$i>/
^5([_,]*)':\x27/4$1'u<$i>/
^5([_,]*)':\x28/4$1'u<$i>/
^5([_,]*)':\x29/4$1'u<$i>/
^5([_,]*)':\x2A/4$1'u<$i>/
^5([_,]*)':\x2B/4$1'u<$i>/
^5([_,]*)':\x2C/4$1'u<$i>/
^5([_,]*)':\x2D/4$1'u<$i>/
^5([_,]*)':\x2E/4$1'u<$i>/
^5([_,]*)':\x2F/4$1'u<$i>/
^5([_,]*)':\x30/4$1'u<$i>/
^5([_,]*)':\x31/4$1'u<$i>/
^5([_,]*)':\x32/4$1'u<$i>/
^5([_,]*)':\x33/4$1'u<$i>/
^5([_,]*)':\x34/4$1'u<$i>/
^5([_,]*)':\x35/4$1'u<$i>/
^5([_,]*)':\x36/4$1'u<$i>/
^5([_,]*)':\x37/4$1'u<$i>/
^5([_,]*)':\x38/4$1'u<$i>/
^5([_,]*)':\x39/4$1'u<$i>/
^5([_,]*)':\x3A/4$1'u<$i>/
^5([_,]*)':\x3B/4$1'u<$i>/
^5([_,]*)':\x3C/4$1'u<$i>/
^5([_,]*)':\x3D/4$1'u<$i>/
^5([_,]*)':\x3E/4$1'u<$i>/
^5([_,]*)':\x3F/4$1'u<$i>/
^5([_,]*)':\x40/4$1'u<$i>/
^5([_,]*)':\x41/4$1'u<$i>/
^5([_,]*)':\x42/4$1'u<$i>/
^5([_,]*)':\x43/4$1'u<$i>/
^5([_,]*)':\x44/4$1'u<$i>/
^5([_,]*)':\x45/4$1'u<$i>/
^5([_,]*)':\x46/4$1'u<$i>/
^5([_,]*)':\x47/4$1'u<$i>/
^5([_,]*)':\x48/4$1'u<$i>/
^5([_,]*)':\x49/4$1'u<$i>/
^5([_,]*)':\x4A/4$1'u<$i>/
^5([_,]*)':\x4B/4$1'u<$i>/
^5([_,]*)':\x4C/4$1'u<$i>/
^5([_,]*)':\x4D/4$1'u<$i>/
^5([_,]*)':\x4E/4$1'u<$i>/
^5([_,]*)':\x4F/4$1'u<$i>/
^5([_,]*)':\x50/4$1'u<$i>/
^5([_,]*)':\x51/4$1'u<$i>/
^5([_,]*)':\x52/4$1'u<$i>/
^5([_,]*)':\x53/4$1'u<$i>/
^5([_,]*)':\x54/4$1'u<$i>/
^5([_,]*)':\x55/4$1'u<$i>/
^5([_,]*)':\x56/4$1'u<$i>/
^5([_,]*)':\x57/4$1'u<$i>/
^5([_,]*)':\x58/4$1'u<$i>/
^5([_,]*)':\x59/4$1'u<$i>/
^5([_,]*)':\x5A/4$1'u<$i>/
^5([_,]*)':\x5B/4$1'u<$i>/
^5([_,]*)':\x5C/4$1'u<$i>/
^5([_,]*)':\x5D/4$1'u<$i>/
^5([_,]*)':\x5E/4$1'u<$i>/
^5([_,]*)':\x5F/4$1'u<$i>/
^5([_,]*)':\x60/4$1'u<$i>/
^5([_,]*)':\x61/4$1'u<$i>/
^5([_,]*)':\x62/4$1'u<$i>/
^5([_,]*)':\x63/4$1'u<$i>/
^5([_,]*)':\x64/4$1'u<$i>/
^5([_,]*)':\x65/4$1'u<$i>/
^5([_,]*)':\x66/4$1'u<$i>/
^5([_,]*)':\x67/4$1'u<$i>/
^5([_,]*)':\x68/4$1'u<$i>/
^5([_,]*)':\x69/4$1'u<$i>/
^5([_,]*)':\x6A/4$1'u<$i>/
^5([_,]*)':\x6B/4$1'u<$i>/
^5([_,]*)':\x6C/4$1'u<$i>/
^5([_,]*)':\x6D/4$1'u<$i>/
^5([_,]*)':\x6E/4$1'u<$i>/
^5([_,]*)':\x6F/4$1'u<$i>/
^5([_,]*)':\x70/4$1'u<$i>/
^5([_,]*)':\x71/4$1'u<$i>/
^5([_,]*)':\x72/4$1'u<$i>/
^5([_,]*)':\x73/4$1'u<$i>/
^5([_,]*)':\x74/4$1'u<$i>/
^5([_,]*)':\x75/4$1'u<$i>/
^5([_,]*)':\x76/4$1'u<$i>/
^5([_,]*)':\x77/4$1'u<$i>/
^5([_,]*)':\x78/4$1'u<$i>/
^5([_,]*)':\x79/4$1'u<$i>/
^5([_,]*)':\x7A/4$1'u<$i>/
^5([_,]*)':\x7B/4$1'u<$i>/
^5([_,]*)':\x7C/4$1'u<$i>/
^5([_,]*)':\x7D/4$1'u<$i>/
^5([_,]*)':\x7E/4$1'u<$i>/
^5([_,]*)':\x7F/4$1'u<$i>/
^5([_,]*)':\x80/4$1'u<$i>/
^5([_,]*)':\x81/4$1'u<$i>/
^5([_,]*)':\x82/4$1'u<$i>/
^5([_,]*)':\x83/4$1'u<$i>/
^5([_,]*)':\x84/4$1'u<$i>/
^5([_,]*)':\x85/4$1'u<$i>/
^5([_,]*)':\x86/4$1'u<$i>/
^5([_,]*)':\x87/4$1'u<$i>/
^5([_,]*)':\x88/4$1'u<$i>/
^5([_,]*)':\x89/4$1'u<$i>/
^5([_,]*)':\x8A/4$1'u<$i>/
^5([_,]*)':\x8B/4$1'u<$i>/
^5([_,]*)':\x8C/4$1'u<$i>/
^5([_,]*)':\x8D/4$1'u<$i>/
^5([_,]*)':\x8E/4$1'u<$i>/
^5([_,]*)':\x8F/4$1'u<$i>/
^5([_,]*)':\x90/4$1'u<$i>/
^5([_,]*)':\x91/4$1'u<$i>/
^5([_,]*)':\x92/4$1'u<$i>/
^5([_,]*)':\x93/4$1'u<$i>/
^5([_,]*)':\x94/4$1'u<$i>/
^5([_,]*)':\x95/4$1'u<$i>/
^5([_,]*)':\x96/4$1'u<$i>/
^5([_,]*)':\x97/4$1'u<$i>/
^5([_,]*)':\x98/4$1'u<$i>/
^5([_,]*)':\x99/4$1'u<$i>/
^5([_,]*)':\x9A/4$1'u<$i>/
^5([_,]*)':\x9B/4$1'u<$i>/
^5([_,]*)':\x9C/4$1'u<$i>/
^5([_,]*)':\x9D/4$1'u<$i>/
^5([_,]*)':\x9E/4$1'u<$i>/
^5([_,]*)':\x9F/4$1'u<$i>/
^5([_,]*)':\xA0/4$1'u<$i>/
^5([_,]*)':\xA1/4$1'u<$i>/
^5([_,]*)':\xA2/4$1'u<$i>/
^5([_,]*)':\xA3/4$1'u<$i>/
^5([_,]*)':\xA4/4$1'u<$i>/
^5([_,]*)':\xA5/4$1'u<$i>/
^5([_,]*)':\xA6/4$1'u<$i>/
^5([_,]*)':\xA7/4$1'u<$i>/
^5([_,]*)':\xA8/4$1'u<$i>/
^5([_,]*)':\xA9/4$1'u<$i>/
^5([_,]*)':\xAA/4$1'u<$i>/
^5([_,]*)':\xAB/4$1'u<$i>/
^5([_,]*)':\xAC/4$1'u<$i>/
^5([_,]*)':\xAD/4$1'u<$i>/
^5([_,]*)':\xAE/4$1'u<$i>/
^5([_,]*)':\xAF/4$1'u<$i>/
^5([_,]*)':\xB0/4$1'u<$i>/
^5([_,]*)':\xB1/4$1'u<$i>/
^5([_,]*)':\xB2/4$1'u<$i>/
^5([_,]*)':\xB3/4$1'u<$i>/
^5([_,]*)':\xB4/4$1'u<$i>/
^5([_,]*)':\xB5/4$1'u<$i>/
^5([_,]*)':\xB6/4$1'u<$i>/
^5([_,]*)':\xB7/4$1'u<$i>/
^5([_,]*)':\xB8/4$1'u<$i>/
^5([_,]*)':\xB9/4$1'u<$i>/
^5([_,]*)':\xBA/4$1'u<$i>/
^5([_,]*)':\xBB/4$1'u<$i>/
^5([_,]*)':\xBC/4$1'u<$i>/
^5([_,]*)':\xBD/4$1'u<$i>/
^5([_,]*)':\xBE/4$1'u<$i>/
^5([_,]*)':\xBF/4$1'u<$i>/
^5([_,]*)':\xC0/4$1'u<$i>/
^5([_,]*)':\xC1/4$1'u<$i>/
^5([_,]*)':\xC2/4$1'u<$i>/
^5([_,]*)':\xC3/4$1'u<$i>/
^5([_,]*)':\xC4/4$1'u<$i>/
^5([_,]*)':\xC5/4$1'u<$i>/
^5([_,]*)':\xC6/4$1'u<$i>/
^5([_,]*)':\xC7/4$1'u<$i>/
^5([_,]*)':\xC8/4$1'u<$i>/
^5([_,]*)':\xC9/4$1'u<$i>/
^5([_,]*)':\xCA/4$1'u<$i>/
^5([_,]*)':\xCB/4$1'u<$i>/
^5([_,]*)':\xCC/4$1'u<$i>/
^5([_,]*)':\xCD/4$1'u<$i>/
^5([_,]*)':\xCE/4$1'u<$i>/
^5([_,]*)':\xCF/4$1'u<$i>/
^5([_,]*)':\xD0/4$1'u<$i>/
^5([_,]*)':\xD1/4$1'u<$i>/
^5([_,]*)':\xD2/4$1'u<$i>/
^5([_,]*)':\xD3/4$1'u<$i>/
^5([_,]*)':\xD4/4$1'u<$i>/
^5([_,]*)':\xD5/4$1'u<$i>/
^5([_,]*)':\xD6/4$1'u<$i>/
^5([_,]*)':\xD7/4$1'u<$i>/
^5([_,]*)':\xD8/4$1'u<$i>/
^5([_,]*)':\xD9/4$1'u<$i>/
^5([_,]*)':\xDA/4$1'u<$i>/
^5([_,]*)':\xDB/4$1'u<$i>/
^5([_,]*)':\xDC/4$1'u<$i>/
^5([_,]*)':\xDD/4$1'u<$i>/
^5([_,]*)':\xDE/4$1'u<$i>/
^5([_,]*)':\xDF/4$1'u<$i>/
^5([_,]*)':\xE0/4$1'u<$i>/
^5([_,]*)':\xE1/4$1'u<$i>/
^5([_,]*)':\xE2/4$1'u<$i>/
^5([_,]*)':\xE3/4$1'u<$i>/
^5([_,]*)':\xE4/4$1'u<$i>/
^5([_,]*)':\xE5/4$1'u<$i>/
^5([_,]*)':\xE6/4$1'u<$i>/
^5([_,]*)':\xE7/4$1'u<$i>/
^5([_,]*)':\xE8/4$1'u<$i>/
^5([_,]*)':\xE9/4$1'u<$i>/
^5([_,]*)':\xEA/4$1'u<$i>/
^5([_,]*)':\xEB/4$1'u<$i>/
^5([_,]*)':\xEC/4$1'u<$i>/
^5([_,]*)':\xED/4$1'u<$i>/
^5([_,]*)':\xEE/4$1'u<$i>/
^5([_,]*)':\xEF/4$1'u<$i>/
^5([_,]*)':\xF0/4$1'u<$i>/
^5([_,]*)':\xF1/4$1'u<$i>/
^5([_,]*)':\xF2/4$1'u<$i>/
^5([_,]*)':\xF3/4$1'u<$i>/
^5([_,]*)':\xF4/4$1'u<$i>/
^5([_,]*)':\xF5/4$1'u<$i>/
^5([_,]*)':\xF6/4$1'u<$i>/
^5([_,]*)':\xF7/4$1'u<$i>/
^5([_,]*)':\xF8/4$1'u<$i>/
^5([_,]*)':\xF9/4$1'u<$i>/
^5([_,]*)':\xFA/4$1'u<$i>/
^5([_,]*)':\xFB/4$1'u<$i>/
^5([_,]*)':\xFC/4$1'u<$i>/
^5([_,]*)':\xFD/4$1'u<$i>/
^5([_,]*)':\xFE/4$1'u<$i>/
^5([_,]*)':\xFF/4$1'u<$i>/
# [
^3([_,]*)'(_+)([,_]*)\$([^']*)'(=*)\(/4$1'$2$3\$$4$5'(/
^3([_,]*)'(?!_)([,_]*)\$([^']*)'(=*)\(([^$]*?)(?<!=)\4\)/4$1'$2\$$3$4($5$4')/
# ]
^3([_,]*)'(_+)([,_]*)\$([^']*)(?<!=)(=*)\(([^']*?)'\5\)/4$1'$2$3\$$4$5'($6$5)/
^3([_,]*)'(?!_)([,_]*)\$([^']*)(?<!=)(=*)\(([^']*?)'\4\)/4$1'$2\$$3$4($5$4')/
# Move to output finalization
^3['_,]*\$[^$]*'\$([_,]*)\$[^\x00-\xFF]*$/6$1\$/
^6_{0,31},([_,]*)\$([\x00-\xff]*)/6$1\$$2/
^6_{32},([_,]*)\$([\x00-\xff]*)/6$1\$$2 /
^6_{33},([_,]*)\$([\x00-\xff]*)/6$1\$$2!/
^6_{34},([_,]*)\$([\x00-\xff]*)/6$1\$$2"/
^6_{35},([_,]*)\$([\x00-\xff]*)/6$1\$$2\#/
^6_{36},([_,]*)\$([\x00-\xff]*)/6$1\$$2\$/
^6_{37},([_,]*)\$([\x00-\xff]*)/6$1\$$2%/
^6_{38},([_,]*)\$([\x00-\xff]*)/6$1\$$2&/
^6_{39},([_,]*)\$([\x00-\xff]*)/6$1\$$2'/
^6_{40},([_,]*)\$([\x00-\xff]*)/6$1\$$2(/
^6_{41},([_,]*)\$([\x00-\xff]*)/6$1\$$2)/
^6_{42},([_,]*)\$([\x00-\xff]*)/6$1\$$2*/
^6_{43},([_,]*)\$([\x00-\xff]*)/6$1\$$2+/
^6_{44},([_,]*)\$([\x00-\xff]*)/6$1\$$2,/
^6_{45},([_,]*)\$([\x00-\xff]*)/6$1\$$2-/
^6_{46},([_,]*)\$([\x00-\xff]*)/6$1\$$2./
^6_{47},([_,]*)\$([\x00-\xff]*)/6$1\$$2\//
^6_{48},([_,]*)\$([\x00-\xff]*)/6$1\$$20/
^6_{49},([_,]*)\$([\x00-\xff]*)/6$1\$$21/
^6_{50},([_,]*)\$([\x00-\xff]*)/6$1\$$22/
^6_{51},([_,]*)\$([\x00-\xff]*)/6$1\$$23/
^6_{52},([_,]*)\$([\x00-\xff]*)/6$1\$$24/
^6_{53},([_,]*)\$([\x00-\xff]*)/6$1\$$25/
^6_{54},([_,]*)\$([\x00-\xff]*)/6$1\$$26/
^6_{55},([_,]*)\$([\x00-\xff]*)/6$1\$$27/
^6_{56},([_,]*)\$([\x00-\xff]*)/6$1\$$28/
^6_{57},([_,]*)\$([\x00-\xff]*)/6$1\$$29/
^6_{58},([_,]*)\$([\x00-\xff]*)/6$1\$$2:/
^6_{59},([_,]*)\$([\x00-\xff]*)/6$1\$$2;/
^6_{60},([_,]*)\$([\x00-\xff]*)/6$1\$$2</
^6_{61},([_,]*)\$([\x00-\xff]*)/6$1\$$2=/
^6_{62},([_,]*)\$([\x00-\xff]*)/6$1\$$2>/
^6_{63},([_,]*)\$([\x00-\xff]*)/6$1\$$2?/
^6_{64},([_,]*)\$([\x00-\xff]*)/6$1\$$2@/
^6_{65},([_,]*)\$([\x00-\xff]*)/6$1\$$2A/
^6_{66},([_,]*)\$([\x00-\xff]*)/6$1\$$2B/
^6_{67},([_,]*)\$([\x00-\xff]*)/6$1\$$2C/
^6_{68},([_,]*)\$([\x00-\xff]*)/6$1\$$2D/
^6_{69},([_,]*)\$([\x00-\xff]*)/6$1\$$2E/
^6_{70},([_,]*)\$([\x00-\xff]*)/6$1\$$2F/
^6_{71},([_,]*)\$([\x00-\xff]*)/6$1\$$2G/
^6_{72},([_,]*)\$([\x00-\xff]*)/6$1\$$2H/
^6_{73},([_,]*)\$([\x00-\xff]*)/6$1\$$2I/
^6_{74},([_,]*)\$([\x00-\xff]*)/6$1\$$2J/
^6_{75},([_,]*)\$([\x00-\xff]*)/6$1\$$2K/
^6_{76},([_,]*)\$([\x00-\xff]*)/6$1\$$2L/
^6_{77},([_,]*)\$([\x00-\xff]*)/6$1\$$2M/
^6_{78},([_,]*)\$([\x00-\xff]*)/6$1\$$2N/
^6_{79},([_,]*)\$([\x00-\xff]*)/6$1\$$2O/
^6_{80},([_,]*)\$([\x00-\xff]*)/6$1\$$2P/
^6_{81},([_,]*)\$([\x00-\xff]*)/6$1\$$2Q/
^6_{82},([_,]*)\$([\x00-\xff]*)/6$1\$$2R/
^6_{83},([_,]*)\$([\x00-\xff]*)/6$1\$$2S/
^6_{84},([_,]*)\$([\x00-\xff]*)/6$1\$$2T/
^6_{85},([_,]*)\$([\x00-\xff]*)/6$1\$$2U/
^6_{86},([_,]*)\$([\x00-\xff]*)/6$1\$$2V/
^6_{87},([_,]*)\$([\x00-\xff]*)/6$1\$$2W/
^6_{88},([_,]*)\$([\x00-\xff]*)/6$1\$$2X/
^6_{89},([_,]*)\$([\x00-\xff]*)/6$1\$$2Y/
^6_{90},([_,]*)\$([\x00-\xff]*)/6$1\$$2Z/
^6_{91},([_,]*)\$([\x00-\xff]*)/6$1\$$2[/
^6_{92},([_,]*)\$([\x00-\xff]*)/6$1\$$2\\/
^6_{93},([_,]*)\$([\x00-\xff]*)/6$1\$$2]/
^6_{94},([_,]*)\$([\x00-\xff]*)/6$1\$$2^/
^6_{95},([_,]*)\$([\x00-\xff]*)/6$1\$$2_/
^6_{96},([_,]*)\$([\x00-\xff]*)/6$1\$$2`/
^6_{97},([_,]*)\$([\x00-\xff]*)/6$1\$$2a/
^6_{98},([_,]*)\$([\x00-\xff]*)/6$1\$$2b/
^6_{99},([_,]*)\$([\x00-\xff]*)/6$1\$$2c/
^6_{100},([_,]*)\$([\x00-\xff]*)/6$1\$$2d/
^6_{101},([_,]*)\$([\x00-\xff]*)/6$1\$$2e/
^6_{102},([_,]*)\$([\x00-\xff]*)/6$1\$$2f/
^6_{103},([_,]*)\$([\x00-\xff]*)/6$1\$$2g/
^6_{104},([_,]*)\$([\x00-\xff]*)/6$1\$$2h/
^6_{105},([_,]*)\$([\x00-\xff]*)/6$1\$$2i/
^6_{106},([_,]*)\$([\x00-\xff]*)/6$1\$$2j/
^6_{107},([_,]*)\$([\x00-\xff]*)/6$1\$$2k/
^6_{108},([_,]*)\$([\x00-\xff]*)/6$1\$$2l/
^6_{109},([_,]*)\$([\x00-\xff]*)/6$1\$$2m/
^6_{110},([_,]*)\$([\x00-\xff]*)/6$1\$$2n/
^6_{111},([_,]*)\$([\x00-\xff]*)/6$1\$$2o/
^6_{112},([_,]*)\$([\x00-\xff]*)/6$1\$$2p/
^6_{113},([_,]*)\$([\x00-\xff]*)/6$1\$$2q/
^6_{114},([_,]*)\$([\x00-\xff]*)/6$1\$$2r/
^6_{115},([_,]*)\$([\x00-\xff]*)/6$1\$$2s/
^6_{116},([_,]*)\$([\x00-\xff]*)/6$1\$$2t/
^6_{117},([_,]*)\$([\x00-\xff]*)/6$1\$$2u/
^6_{118},([_,]*)\$([\x00-\xff]*)/6$1\$$2v/
^6_{119},([_,]*)\$([\x00-\xff]*)/6$1\$$2w/
^6_{120},([_,]*)\$([\x00-\xff]*)/6$1\$$2x/
^6_{121},([_,]*)\$([\x00-\xff]*)/6$1\$$2y/
^6_{122},([_,]*)\$([\x00-\xff]*)/6$1\$$2z/
^6_{123},([_,]*)\$([\x00-\xff]*)/6$1\$$2{/
^6_{124},([_,]*)\$([\x00-\xff]*)/6$1\$$2|/
^6_{125},([_,]*)\$([\x00-\xff]*)/6$1\$$2}/
^6_{126},([_,]*)\$([\x00-\xff]*)/6$1\$$2~/
^6_{127}_*,([_,]*)\$([\x00-\xff]*)/6$1\$$2/
# Finalize output. For reasonable outputs, this can be blanked. To prevent re-interpreting, intentionally prepends a =
^6\$/=/
1#input
This behemoth of ReRegex code is a true torture test for the language.
Takes input after the $
character, Supports the full byte range on inputs, though is limited to printable ascii for outputs due to a limitation of the Java version used to run ReRegex.
Takes a couple seconds to run the simple Hello World, over a minute to run the golfed version, and primes to 15 is still running...
,
on EOF? Or that it's up to us to choose a value when trying,
on EOF? Or is EOF undefined behaviour altogether? \$\endgroup\$