Bracket Matching by shinh

#!ruby -pl
$_=/.([]})>](.+)?)/&&7>$1[0]^$&[0]?$2?$`+$2:'yes':"failed at: #{$1||:EOL}"until/e/

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page