• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Part VIII: Appendixes > Pattern Matching the String Object Way

Pattern Matching the String Object Way

Back in Chapter 29, "Performing Form Validation," I showed you several scripts that use String object properties and methods to validate the data entered into form text boxes. In particular, I introduced you to a function called check_mask() that checked a string against a "mask" that specified positions within the string where letters and numbers must appear. For example, the mask for a phone number looked like this:

(###)###-####


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint