You have already been given a regex which works fine, all the way up untill you want to make your own, and then start getting it wrong lol (like me)

a quick way is this

alias -l name.is.foo { msg $iif($chan,$chan,$nick) Foo }
on *:text:what is your name:*:{ name.is.foo }
on *:text:what is ur name:*:{ name.is.foo }
on *:text:wut is your name:*:{ name.is.foo }
on *:text:wut is ur name:*:{ name.is.foo }
on *:text:etc.:*:{ name.is.foo }

you just keep adding a line for each one you want