How to detect emoji using javascript
I need help on how to detect if the input contains japanese emoji/emoticon. Currently I'm build a system which charset=utf-8. On input text, user can input japanese character/alpanumerics/symbols but if they insert emoji, onsubmit javascript will check if there is an emoji, error message will display. Really have no idea on how to detect emoji. You can use the following regex: /(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff]|[\u0023-\u0039]\ufe0f?\u20e3|\u3299|\u3297|\u303d|\u3030|\u24c2|\ud83c[\udd70-\udd71]|\ud83c[\udd7e-\udd7f]|\ud83c\udd8e|\ud83c[\udd91-