Build, test, and debug regular expressions
This regex matches a parameter declaration in Visual Basic-like syntax, optionally capturing a ByVal or ByRef modifier, the parameter name, an optional 'As Type' clause, and an optional default value assignment. It also allows for a trailing comma, closing parenthesis, or pipe character. Useful for parsing VB/VBA function signatures or extracting parameter lists.