Does RegularExpressionValidator use other flavor than Regex?

前端 未结 2 578
梦如初夏
梦如初夏 2020-12-11 06:23

I want to do preliminary check if entered string looks like Vehicle Identification Number (VIN). I know what it consists of 17 letters and digits, but letters I, O and Q are

2条回答
  •  情深已故
    2020-12-11 06:34

    The RegularExpressionValidator also supports client-side validation using JavaScript, where the JavaScript Regex engine is used. The difference you see is the difference between the JavaScript and the .NET regex implementation. You can disable client-side validation and thus force the validator to use the .NET regex engine, at the price of the additional post-back.

提交回复
热议问题