I'm trying to find all strings of the format {{rdex|001|001|Bulbasaur|2|Grass|Poison}} in a large text file, and then extract the substrings corresponding to the first 001 and to Bulbasaur, perhaps as a tuple.
I'm assuming regex with capturing groups can be used for both; could anybody tell me the appropriate regex to use in Python 3.1 as well as a possible code outline? I'm a regex noob.
Thanks!