The match will be $& unless you use look-before and look-behind (unsure whether using those will actually save any memory); If you are interested in just a part of the match, use a capturing. This matlab function returns indices of the matching features in the two input feature sets. Is there a way in python to access match groups without explicitly creating a match object (or another way to beautify the example below)? Here is an example to clarify my motivation for.
How do i match all lines not matching a particular pattern using grep? I tried this: Answer (line anchors vs string anchors) what this tells me is that re. match and re. fullmatch don't match line anchors ^ and $ respectively, but that they instead match string anchors \a and \z.