用于“不仅包含空格”的正则表达式模式 [英] Regex pattern for "contains not only spaces"
本文介绍了用于“不仅包含空格”的正则表达式模式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如果字段不能只包含空格,请告诉我需要使用哪种模式。
Please tell me which pattern I need to use if field must not contain only spaces.
推荐答案
为什么需要使用正则表达式?
Why need to use regex?
str.trim().isEmpty()
这篇关于用于“不仅包含空格”的正则表达式模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文