How do you test the regular expression? Write directly in the code of the large segment, then wait for the program to run there, then use the ALERT display result; or temporarily write a page, drop it after the test is complete; or other more wasteful methods?
In fact, you should write a relatively universal web page, and enter the regular expression test to be tested.