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

Chapter 7. Forms and Regular Expressions > Formatting and Validating Strings

Formatting and Validating Strings

Regular expressions can be used to simultaneously format and validate an entered value. In Script 7.6, the user enters a phone number in any format. The end result will either be a formatted phone number or a meaningful error message.

Script 7.6. This script validates and formats a user-entered phone number.



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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