I don’t even know if this is possible, but here goes.
My organization uses VSCode as its’ editor-of-choice (probably because they’re too stupid to use something that works !!), and I have a faece-load of Python code to remediate and munge into a format that somehoe will adhere to the “corporate standard”, where “corporate standard” is defined as “whatever the last Outsourced programmer used”.
Here’s what I need to search for;
Function function_name()
Line1
Line2
Etc
End Function
I need to find that as a block based on the function name, up to and including the End Function line.
Can’t seem to get regex quite right. Is it possible ???