why use a regex at all, this is what I use in my own (awful) adtrunner depends = depends.replace("(", " ").replace("[", " ") packages = [x.split()[0] for x in depends.split(",")]
depends is a string from debian.deb822
why use a regex at all, this is what I use in my own (awful) adtrunner replace( "(", " ").replace("[", " ")
depends = depends.
packages = [x.split()[0] for x in depends.split(",")]
depends is a string from debian.deb822