2 options
JavaScript regular expressions : leverage the power of regular expressions to create an engaging user experience / Loiane Groner, Gabriel Manricks.
- Format:
- Book
- Author/Creator:
- Groner, Loiane, author.
- Manricks, Gabriel, author.
- Series:
- Community experience distilled.
- Community Experience Distilled
- Language:
- English
- Subjects (All):
- JavaScript (Computer program language).
- Web sites--Design.
- Web sites.
- Physical Description:
- 1 online resource (112 p.)
- Edition:
- 1st edition
- Other Title:
- Leverage the power of regular expressions to create an engaging user experience
- Place of Publication:
- Birmingham, England ; Mumbai, [India] : Packt Publishing, 2015.
- Language Note:
- English
- System Details:
- text file
- Summary:
- This book is ideal for JavaScript developers and programmers who work with any type of user entry data and want sharpen their skills to become experts.
- Contents:
- Cover; Copyright; Credits; About the Authors; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Getting Started with Regex; It's all about patterns; Analyzing a phone number; Analyzing a simple log file; Analyzing an XML file; Regex in JavaScript; The RegExp constructor; Using pattern flags; Using the rgx.test method; Using the rgx.exec method; The string object and regular expressions; Using the String.replace method; Using the String.search method; Using the String.match method; Building our environment; Handling a submitted form; Resetting matches and errors
- Creating a regular expressionExecuting RegExp and extracting its matches; Testing our application; Summary; Chapter 2: The Basics; Defining vague matchers in Regex; Matching a wild card character; Matching digits; Matching alphanumeric chars; Negating alphanumeric chars and digits; Defining ranges in Regex; Defining a range; Matching the dash character; Defining negated ranges; Defining multipliers in Regex; Matching one or more occurrences; Matching zero or one occurrence; Matching zero or more occurrences; Defining custom quantifiers; Matching n or more occurrences
- Matching n to m occurrencesMatching alternated options; Creating a Regex for a telephone number; Summary; Chapter 3: Special Characters; Nonvisual constraints; Matching the beginning and end of an input; Matching word boundaries; Matching nonword boundaries; Matching a whitespace character; Defining nongreedy quantifiers; Matching groups in Regex; Grouping characters together to create a clause; Capture and noncapture groups; Matching lookahead groups; Using a negative lookahead; Summary; Chapter 4: Regex in Practice; Regular expressions and form validation; Setting up the form
- Validating fieldsMatching a complete name; Understanding the complete name Regex; Matching an e-mail with Regex; Understanding the e-mail Regex; Matching a Twitter name; Understanding the twitter username Regex; Matching passwords; Matching URLs; Understanding the URL Regex; Manipulating data; Using the String.replace method; Matching a description field; Understanding the description Regex; Explaining a Markdown example; Summary; Chapter 5: Node.js and Regex; Setting up Node.js; Getting started with our application; Reading a file with Node.js; The anatomy of an Apache log file
- Creating the Apache log RegexCreating a Regex for the time part; Creating a Regex for the request information; Creating a Regex for the status code and object size; Creating a Regex for the referrer and the user agent; Parsing each Apache log row; Summary; Appendix: JavaScript Regex Cheat Sheet; Character classes; Literals; Character sets; Boundaries; Grouping, alternation, and back reference; Quantifiers; JavaScript regular expressions methods; Index
- Notes:
- Includes index.
- Description based on online resource; title from PDF title page (ebrary, viewed June 11, 2015).
- OCLC:
- 911187074
The Penn Libraries is committed to describing library materials using current, accurate, and responsible language. If you discover outdated or inaccurate language, please fill out this feedback form to report it and suggest alternative language.