jruizgit / rules

Durable Rules Engine
MIT License
1.14k stars 209 forks source link

Getting matched groups #383

Open mingfang opened 3 years ago

mingfang commented 3 years ago

Is there a way to get the matched groups when using a rule matching pattern that contains groups?

For example, this code matches three groups. https://github.com/jruizgit/rules/blob/72070f4d686142dcc44ee26a6cad0e8c531f9d24/testpy/testsamples.py#L145

I would like to get the value of the matched groups.