子例程除点(.)外,不允许使用特殊字符 [英] subroutine no special characters allowed except dots(.)

查看:102
本文介绍了子例程除点(.)外,不允许使用特殊字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

需要一些帮助..

创建一个子例程,该子例程将仅接受限于大写字母,空格和点(.)中的字母的字符串.



没有空格字符
没有数字


感谢您和上帝的祝福.

need some help..

create a subroutine that will accept a string limited to letters in uppercase,space, and dot(.) only.



No spacial character
no numbers


Thank you and God Bless.

推荐答案



您可以将输入的字符串与正则表达式进行匹配.

请参阅链接 [ ^ ]获取有关正则表达式的完整信息.
Hi,

you can match the incoming string with a regular expression.

refer the link[^] for complete information about regular expressions.


这篇关于子例程除点(.)外,不允许使用特殊字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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