1input test1234 2return 0 3len 8 4output test1234 5 6input test[abcfoobar]2211 7return 0 8len 19 9output test[abcfoobar]2211 10 11input bar[aaa][bbbb]sss 12return 0 13len 17 14output bar[aaa][bbbb]sss 15 16input kmod[p.b]lib 17return 0 18len 12 19output kmod[p.b]lib 20 21input [az]1234[AZ] 22return 0 23len 12 24output [az]1234[AZ] 25 26