Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


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

Chapter 14. Validation, Formatting, and ... > Use Regular Expressions for Locating...

recipe 14.6. Use Regular Expressions for Locating Email Addresses

14.6.1. Problem

You need to identify any email addresses entered or encountered in text.

14.6.2. Solution

Create a regular expression to match the name@host.com email address format and use the global flag (g) to indicate that the expression can match multiple times.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial