Essentially it matches one of the types, followed by <somevaliddata>. Then you can take the second match group and split it on : or / to find all your values. Sorry I can't help you much more than that, my python is too rusty to code blindly.