Test, validate and match regular expressions
This regex matches lines beginning with the word "Function", preserving leading whitespace and capturing the rest of the function signature up to a newline, semicolon, or comment slash. It is typically used in code refactoring or language migration scripts, such as converting legacy Basic or VBScript function declarations into modern equivalents like "public static". The multiline flag ensures it accurately targets these specific declarations across an entire codebase.