logo

Response

« Return to the main article

You are viewing this page out of context. To see it in the context it is intended please click here.

About This Page

Reply posted by Jake Howlett on Thu 22 Jun 2006 in response to Form Validator R3.0

Re: Question

Hi Keith.
When creating a RegExp from a string you need to "double escape" the \s. So
your value passed to the constructor would need to be:


/(\\D{3}\\d{4})$/


Hope that helps. Glad you like the code.


Jake