My code below match the first word after one expression "let" :
(?<=\blet\s)(\w+)
What I need is to match the first word after a specific expressions, "let", "var", "func"
Input text:
let name: String
var age: Int
func foo() {
//...
Expected:
name
age
foo