Test, validate and match regular expressions
This regular expression matches lines defining a gRPC method, typically found in Protocol Buffer (.proto) files. It captures the name of the RPC method into the first capturing group by looking for the 'rpc' keyword followed by a word character string. The multiline flag ensures it matches the start of any line, while the global flag finds all occurrences. It is highly useful for parsing or refactoring gRPC service definitions programmatically.