negate a javascript regex to match all except ranges

75 Views Asked by At

I'm not very good with regex and I could use some help. I'm trying to match all characters except the ones defined by those ranges (ranges that match most emoji). How would I negate the statement below?

var nonEmoji = new RegExp(/[\ud83c[\udf00-\udfff]|\ud83d[\udc00-\ude4f]|\ud83d[\ude80-\udeff]]*$/, 'i');
0

There are 0 best solutions below