Sinisterly
[Golfing] Filter - Printable Version

+- Sinisterly (https://sinister.li)
+-- Forum: Coding (https://sinister.li/Forum-Coding)
+--- Forum: Coding (https://sinister.li/Forum-Coding--71)
+--- Thread: [Golfing] Filter (/Thread-Golfing-Filter)

Pages: 1 2


RE: [Golfing] Filter - Eclipse - 08-28-2015

(08-28-2015, 12:28 AM)Shebang Wrote: What the hell are you doing putting the print on another line? Save your bytes!

Also, in my defense I've never learned Regex Tongue

Oh, that was retarded. Fixed. Tongue


RE: [Golfing] Filter - 0xDEAD10CC - 09-03-2015

J:
Code:
s =. 1!:1 < 'file.txt' .# ('[[:alpha:]]+' rxmatches s) rxfrom s

Code:
+-----+-----+--+----+----+--------+----+--------+----+ |Hello|world|Oh|fuck|what|happened|here|Alrighty|then| +-----+-----+--+----+----+--------+----+--------+----+



RE: [Golfing] Filter - Inori - 09-03-2015

(09-03-2015, 04:55 AM)0xDEAD10CC Wrote: J:
Code:
s =. 1!:1 < 'file.txt' .# ('[[:alpha:]]+' rxmatches s) rxfrom s

Code:
+-----+-----+--+----+----+--------+----+--------+----+ |Hello|world|Oh|fuck|what|happened|here|Alrighty|then| +-----+-----+--+----+----+--------+----+--------+----+

Huh. Never heard of J. Nice job. (Sadly, it's been too long since I created the thread to add you to the leaderboard :c)


RE: [Golfing] Filter - 0xDEAD10CC - 09-03-2015

I can get it down to 48:
Code:
s=.1!:1<'f' .#('[a-zA-Z0-9]+'rxmatches s)rxfrom s



RE: [Golfing] Filter - Eclipse - 09-03-2015

(09-03-2015, 04:57 AM)Chitoge Wrote: Huh. Never heard of J. Nice job. (Sadly, it's been too long since I created the thread to add you to the leaderboard :c)

Added him.