posts - 8, comments - 1, trackbacks - 1, articles - 1

08 2006 档案

摘要: 正则表达示收藏整数或者小数:^[0-9]+\.{0,1}[0-9]{0,2}$只能输入数字:"^[0-9]*$"。只能输入n位的数字:"^\d{n}$"。只能输入至少n位的数字:"^\d{n,}$"。只能输入m~n位的数字:。"^\d{m,n}$"只能输入零和非零开头的数字:"^(0|[1-9][0-9]*)$"。只能输入有两位小数的正实数:"^[0-9]+(.[0-9]{2})?$"。只能输入有...阅读全文

posted @ 2006-08-31 13:50 ansonchou 阅读(294) | 评论 (0) 编辑 |