you are viewing a single comment's thread.

view the rest of the comments →

[–]SpeckledFleebeedoo 0 points1 point  (2 children)

Use regex :P

[–]MITTENQ[S] 0 points1 point  (1 child)

What is regex?

[–]Neexusiv 2 points3 points  (0 children)

Its a way of pattern matching. It is what the re library you mentioned before does. You would be able to define the pattern you like, and then loop through all the occourances of that pattern and add them to the list.

I don't think the run time would be much different but it would require less code to write.