Recently, there is a need for the project on hand is the input box can not enter the expression, and then on the various online looking for information, many people on the Internet program is:
str = str.replace (/\ud83c[\udf00-\udfff]|\ud83d[\udc00-\ude4f]/g, "");
The usage is probably:
<= "This.value = Value.replace (/\ud83c[\udf00-\udfff]|\ud83d[\udc00-\ude4f]/g," ")">;
This is useful for sogou input method, but I changed the phone on the message fly input method tried, and no eggs, third-party calligraphy emoji Expression Unicode encoding range is really not OK.
So the reverse comes. You do not let the input expression, I can only input Chinese, English, numerals, punctuation does not realize the need?
<type= "text" ID= "ipt1" oninput= "VALUE = Value.replace (/[^\u4e00-\u9fa5|\d|\a-za-z|\r\n\s,.?!,.?! ...-&$= ()-+/*{}[\]]|\s/g, ")"/>
The pro-test is effective.
Mobile over-stop input emoji expression implementation scheme