简体   繁体   English

RegEx for Ext js文本字段

[英]RegEx for Ext js textfield

I need regex which will allow dot and forward and backward slash. 我需要正则表达式,它允许点和正斜杠。 Where dot is mandatory. 点是强制性的。 I am using Ext js 5.0. 我正在使用Ext js 5.0。

You should provide an example string and expected output, as well as patterns you've tried. 您应该提供示例字符串和预期输出以及您尝试过的模式。

allow dot and forward and backward slash.where dot is mandatory. 允许点和正斜杠。

var regex = new RegExp("\.\/?\\?");

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM