-------------------------------1152714473
Content-Type: text/plain; charset="US-ASCII"
Content-Transfer-Encoding: 7bit

Daniel,
 
here's a function to do what you want ... 
 
class String
def bencode?
if  /^([1-9]+\d*):/.match(self)il
return  false
else
number濛l((/(^([1-9]+\d*)):/.match(self))[1])
rest_of_string_lengthロョィァコァゥォアョョュアンョ
 ゜゜゜
 

  






ツ ャ
 
チ 

ュュュュュュュュュュュュュュュュュュュュュュュュュュュュュュュアアオイキアエエキウュュ