Use parameters in regexp

Hi Michel,

Thanks for the reply.

Because $alias is the valuable that I pass into the query.

query test($dir: string = "steven"){
  directors(func: regexp(name@en, /^$dir.*$/i)) {
    name@en
  }
}

How can I get it working?

regards