import re let reg1 = re("foo bar", {reIgnoreCase, reExtended}) # or import nre let reg2 = re"(?ix)foo bar"