input   test1234
return  0
len     8
output  test1234

input   test[abcfoobar]2211
return  0
len     19
output  test[abcfoobar]2211

input   bar[aaa][bbbb]sss
return  0
len     17
output  bar[aaa][bbbb]sss

input   kmod[p.b]lib
return  0
len     12
output  kmod[p.b]lib

input   [az]1234[AZ]
return  0
len     12
output  [az]1234[AZ]

