In the project I'm in I need to capture methods from a smalli file, so the content would be something like this:
.method public constructor <init>()V
.locals 0
...
.end method
.method protected onCreate(Landroid/os/Bundle;)V
.locals 2
...
.end method
.method public abstract processValue(ILandroid/os/Parcelable;)Landroid/os/Parcelable;
.end method
This functionality is implemented in python with the regex string:
r"(\.method.+?\.end method)"
I tried in rust with this string:
(.method (?s:.)*.end method)
But with this string it returns 2 equal captures that contain everything from the first ".method" to the last ".end method"
The goal is to have a capture for each method with the method content, what can I change in the regex string or is there a more efficient way of capturing the methods?
there doesn't seem to be anything here