坑爹的flutter正则;
emoji过滤正则表达式:"[^\u0020-\u007E\u00A0-\u00BE\u2E80-\uA4CF\uF900-\uFAFF\uFE30-\uFE4F\uFF00-\uFFEF\u0080-\u009F\u2000-\u201frn]"
RegExp regexp=RegExp("[^\u0020-\u007E\u00A0-\u00BE\u2E80-\uA4CF\uF900-\uFAFF\uFE30-\uFE4F\uFF00-\uFFEF\u0080-\u009F\u2000-\u201frn]")
TextField(
controller: _textEditingController,
focusNode: focusNode,
inputFormatters: [BlacklistingTextInputFormatter(regexp)],
textInputAction: TextInputAction.search,
style: StringUtils.text_style(cr: ColorUtils.c333333),
decoration: InputDecoration(
hintText: '请输入搜索内容',
),
onChanged: (text) {
},
)
最后
以上就是朴实向日葵最近收集整理的关于flutter过滤emoji正则表达式的全部内容,更多相关flutter过滤emoji正则表达式内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复