Use parameters in regexp

Like this:

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

You can also run this query in https://play.dgraph.io/ as it is.