正则表达式我需要把数字的字符串的结束? [英] RegEx I need to put numbers in the end of the string?
问题描述
昨天我问这个问题,人们对计算器真的有帮助,所以反正这是我走到这一步,正则表达式:
I asked this question yesterday and people on stackoverflow were really helpful, so anyway this the regex that i got so far:
<一个href=\"http://stackoverflow.com/questions/21142208/how-can-i-validate-a-string-to-only-allow-string-or-string-with-numbers-but-not\">How我可以验证一个字符串只允许字符串或字符串的数字,但不仅仅是数字?
(?!^ \\ d + $)^ [A-ZA-Z0-9] + $
(?!^\d+$)^[A-Za-z0-9]+$
它并不只允许数字或符号或空格或下划线正是我需要接下来我希望它不是以数字开头和也,但允许之间没有编号,以结束与任意数量的,请帮助?
it doesn't allow numbers only or symbols or spaces or underscores what i need next i want it to not start with numbers and no numbers in between also but allow to end with any number so please help?
推荐答案
这个怎么样的(?!\\ D)* [?\\ d {1}]
这是你的要求是什么呢?
Is this what your requirement is?
编辑:请检查下面的评论,用户得到了所需的答案
Please check the comments below, the user got the answer that was needed
这篇关于正则表达式我需要把数字的字符串的结束?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!