正则表达式帮助 [英] Regular expression pattern help
问题描述
我想为数字定期表达模式
i有一个表格,其中有两个文本框textbox1,textbox2
textbox1应该接受只有0到12之间的值和textbox2应该只接受30到300之间的值
i这个模式尝试不起作用请通过提供这两个文本框1和textbox2
我的模式语法
I want to regular expression patter for Numbers
i have a form in which there are two textbox textbox1 , textbox2
textbox1 should accept value between 0 to 12 only and textbox2 should accept value between 30 to 300 only
i have this pattern tried not working pls help by providing the patterns for this two textbox 1 and textbox2
my pattern syntax
([0-9][2]|{1,12})$
我的尝试:
What I have tried:
([0-9][2]|{1,12})$
i试过这个表达式没有工作请帮忙
提供模式
i have tried this expression not working pls help out
providing pattern
推荐答案
我的尝试:
What I have tried:
([0-9][2]|{1,12})
i试过这个表达式不工作请帮助
提供pat燕鸥
i have tried this expression not working pls help out
providing pattern
试试这个:
Try this:
^[0-9]
这篇关于正则表达式帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!