Hmm, then I was wrong.
But either way the syntax supported by Dgraph is this (proper RE doesn’t do backtracking):
The package we use internally is the built in Go package:
For more information, please refer to
https://swtch.com/~rsc/regexp/regexp1.html
This view of course is not the majority or plural view. The more widely accepted view is one espoused by Damian Conway: