I have a bunch of input string in the following (simplified) format:

```
"Hello my name is Dan"
"Hey my name is Tony"
"Hey|Hello|Hi my name is _"

```

I'm trying to write a regular expression to extract the name from the previous examples, but I'm stuck on how to do it.

I currently have

```
import re
r = re.search("(Hello|Hey|Hi) my name is .+")

```

How do I actually get the captured name?