Regular expression of the verification function is much stronger than usual. It can simply test whether the input value is empty, or check if the input IP address is correct. Microsoft's instructions for regular expressions are extremely simple and vague. This article will explain how the regular expressions are explained by example, which describes how to replace these string functions. Regular expressions are a very useful tool!
I will explain the application of the regular expression by two examples, which can be written in VBScript and JavaScript. The first example is a familiar regular expression check, and the second example shows how to verify the IP address.
Calibration Example This example describes how to simply verify that the input data is empty.
Client JavaScript check code: 01: 02:
03: