Noobfarm

Home Add Quote


#1967
Added: 2014-12-21

<farrioth> k2gremlin: Don't worry. Regular expressions are really handy though, so read up on them next time you're bored :p
<Gorroth> be bored! regex is great
<Gorroth> although, looking at someone else's regex can be kind of horrid
<Gorroth> then again, looking at your own regex after a long time can feel the same way
<farrioth> Gorroth: sed '/^#/!d;s/^##//g;s/^#\\(.*\\)\\[.*\\]\\[.*\\]*/s@<([a-zA-Z0-9]+)\\\\s+.*id=.?\\1.*>.*<\\/\\\\1>@@g/g;s/^#\\(.*\\)/s@<([a-zA-Z0-9]+)\\\\s+.*id=.?\\1.*>.*<\\/\\\\1>@@g/g;s/^\\.\\(.*\\)/s@<([a-zA-Z0-9]+)\\\\s+.*class=.?\\1.*>.*<\\/\\\\1>@@g/g;s/^a\\[\\(.*\\)\\]/s@<a.*\\1.*>.*<\\/a>@@g/g;s/^\\([a-zA-Z0-9]*\\)\\.\\(.*\\)\\[.*\\]\\[.*\\]*/s@<\\1.*class=.?\\2.*>.*<\\/\\1>@@g/g;s/^\\([a-zA-Z0-9]*\\)#\\(.*\\):.*[:[^:]]*[^:]*/s@<\\1.*id=.?\\2.*>.*<\\/\\1>@@g/g;s/^\\([a-zA-Z0-9]*\\)#\\(.*\\)/s
<gry> :o
<farrioth> I just came across that one in the wild...
<ForTheWin> ???
<k2gremlin> wtf?