如何在C#中的TextBox.Text中找到表情符号(情感图标)或goomoji(表情符号) [英] How to find out emoji 's(emotion icon) or goomoji(emoticon) in TextBox.Text in C#

查看:530
本文介绍了如何在C#中的TextBox.Text中找到表情符号(情感图标)或goomoji(表情符号)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Dear Friends

How to block emoji's (emotion icon)or goomoji (emoticon) while user entering on textbox. jquery or c# 

推荐答案

非常简单。使用正则表达式限制 TextBox 中的特殊字符。



使用JavaScript或 ASP.NET RegularExpressionValidator 用于验证输入。如果您没有表达式,那么在 Google 中搜索,您将轻松获得一个。
Very simple. Restrict special character in TextBox using Regular Expression.

Use JavaScript or ASP.NET RegularExpressionValidator for validation the input. If you don't have the expression, then search in Google, you will easily get one.


(textbox.IndexOf("emoji's") > -1)

如果您的文本框中包含此表情符号,则返回true ...

returns true if your text-box contains this "emoji's"...


这篇关于如何在C#中的TextBox.Text中找到表情符号(情感图标)或goomoji(表情符号)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆