like this one? rray_sscanf("ab[\]cd", "%s%[[-]]%s"); (44) Result: ({ /* 2 elements */ "ab", "[" }) easely worked around with:
array_sscanf("ab[\]cd", "%s%[][\]%s");
(46) Result: ({ /* 3 elements */ "ab", "[\]", "cd" })
not sure if that is buggy, but edge case for sure. should the - be treated as range always unless it is at the beginning or end?
(why not use .. for the range, that would be unambigous)
greetings, martin.