验证用户输入 [英] Validating an user entry

查看:69
本文介绍了验证用户输入的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的客户要求我验证用户输入.该条目应遵循链接 http://www.codelifter.com/main/tips/tip_020.shtml <上的规则否则我必须显示验证消息.

我不太擅长正则表达式. cn有人给我一些验证此方法的方法/正则表达式.我必须同时从客户端和服务器端进行验证.

My client has asked me to validate an user entry. The entry should follow the rules on link http://www.codelifter.com/main/tips/tip_020.shtml else I have to show validation message.

I am not very good at regex. Cn anybody give me some approach/regex for validating this.I have to validate from client and server side both.

推荐答案

此工具有助于创建和测试RegEx
http://www.ultrapico.com/Expresso.htm [
This tool is helpful for creating and testing RegEx
http://www.ultrapico.com/Expresso.htm[^]


这篇关于验证用户输入的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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