Is here someone with regex experience? I'm a regex noob and need a bit help. I only need the function names in a avs file.
My regex:
Code:
/ function\s+.+[\s|\S](?=\() /gi
(test here
https://regex101.com/)
Currently my regex finds this:
function Denoise(clip clp, int a) {...}
But it also detects commented lines which I don't want.
#
function Denoise(clip clp, int a) {...}
And "one liner" have some problems too, it detects everything till "Crop".
Function MCPP_get_msb(clip src){ return src.Crop(0, 0, src.Width, src.Height/2) }
My goal is to check all avsi files if there are duplicate function names. Because funcABC() in B.avsi could overwrite funcABC() in A.avsi... and it's easier to find duplicate scripts