3 ms·
You can pass flags and compiled regular expression. Pattern with named captures causes re_find to return dict. You won't get entire match if you have several c
by Suor 13y ago
You can pass flags and compiled regular expression. Pattern with named captures causes re_find to return dict.
You won't get entire match if you have several captures, but you can add a pair of parentheses around your regexp to circumvent this limitation.
As you can see, plenty of flexibility here. Also, you can fallback to naked re once or twice a year, not that much trouble.