Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/73.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
jquery中的表单验证_Jquery_Validation - Fatal编程技术网

jquery中的表单验证

jquery中的表单验证,jquery,validation,Jquery,Validation,我需要验证一个正则表达式。格式如下ITBG/SER/AMC-PA或ITBG/SER/AMC-RN或ITBG/SER/AMC-OT。ie最后一个字段包含pa或rn或ot。请帮助尝试 var regex = /^ITBG\/SER\/AMC\-(pa|rn|ot)$/i var regex=/^ITBG\/SER\/AMC\(pa | rn | ot)$/i

我需要验证一个正则表达式。格式如下
ITBG/SER/AMC-PA
ITBG/SER/AMC-RN
ITBG/SER/AMC-OT
。ie最后一个字段包含
pa
rn
ot
。请帮助

尝试

var regex = /^ITBG\/SER\/AMC\-(pa|rn|ot)$/i

var regex=/^ITBG\/SER\/AMC\(pa | rn | ot)$/i