var string = "foo💩bar"; var match = string.match(/foo(.)bar/u);