Python [statement for item in list] . , , . ( , ), listmaker .
:
>>> str = "'813702104[813702106]','813702141[813702143]','813702172[813702174]'"
>>> arr = [pair for pair in str.split(",")]
>>> arr
["'813702104[813702106]'", "'813702141[813702143]'", "'813702172[813702174]'"]
, str.split( "," ), , , listmaker - , , .
- , , , , :
>>> arr = [pair[1:-2].split("[") for pair in str.split(",")]
>>> arr
>>> [['813702104', '813702106'], ['813702141', '813702143'], ['813702172', '813702174']]
This returns a two-dimensional array, as you describe, but the elements are all strings, not integers. If you are just going to use them as strings, this is far enough away. If you need them to be real integers, you simply use the "internal" listmaker as an instruction for the "external" listmaker:
>>> arr = [[int(x) for x in pair[1:-2].split("[")] for pair in str.split(",")]
>>> arr
>>> [[813702104, 813702106], [813702141, 813702143], [813702172, 813702174]]
This returns a two-dimensional array of integers representing a string similar to the one you provided, without having to load the regex engine.