Relative Content

Tag Archive for pythonpython-3.xregexf5

Is there a way to capture all instances of a regular expression match using the re library in Python in a recursive manner?

I am using the re library in Python 3.12 to capture multiple items from a F5 BIG-IP LTM configuration file to associate pools and members to wildcard certificates and store the data into a dictionary variable using .finditer() and .groupdict() since I want the key/value relationship to be maintained for later use in the script. I am having issues with one of the regular expressions not capturing all of the data that I need, but instead capturing only a single value.