JavaScript Regular Expressions

Leverage the power of regular expressions to create an engaging user experience

JavaScript Regular Expressions

Loiane Groner, Gabriel Manricks

Leverage the power of regular expressions to create an engaging user experience
Mapt Subscription
FREE
$30.00/m after trial
eBook
$19.60
RRP $27.99
Save 29%
Print + eBook
$34.99
RRP $34.99
What do I get with a Mapt subscription?
  • Unlimited access to all Packt’s 6,000+ eBooks and Videos
  • 100+ new titles a month, learning paths, assessments & code files
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the subscription reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the subscription reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the subscription reader
$0.00
$19.60
$34.99
$29.99 p/m after trial
RRP $27.99
RRP $34.99
Subscription
eBook
Print + eBook
Start 14 Day Trial

Frequently bought together


JavaScript Regular Expressions Book Cover
JavaScript Regular Expressions
$ 27.99
$ 19.60
Learning JavaScript Data Structures and Algorithms - Second Edition Book Cover
Learning JavaScript Data Structures and Algorithms - Second Edition
$ 35.99
$ 25.20
Buy 2 for $35.00
Save $28.98
Add to Cart

Book Details

ISBN 139781783282258
Paperback112 pages

Book Description

Regular expressions are patterns or templates that allow you to define a set of rules in a natural yet vague way, giving you the ability to match and validate text. Therefore, they have been implemented in nearly every modern programming language. JavaScript's implementation allows us to perform complex tasks with a few lines of code using regular expressions to match and extract data out of text.

This book starts by exploring what a pattern actually is and how regular expressions express these patterns to match and manipulate user data. You then move on to learning about the use of character classes to define a wild character match, a digit match, and an alphanumeric match. You will then learn to manipulate text and shorten data in URLs, paths, markup, and data exchange, as well as other advanced Regex features.

Finally, you will work through real-world examples, both in the browser and on the server side using Node.js.

What You Will Learn

  • Structure your patterns and model different types of constraints
  • Clean and optimize code with Regex's processing power
  • Solve common use cases and situations
  • Extract different types of fields correctly
  • Embed regular expressions both in your UI and on the backend
  • Efficiently create guard clauses in your functions using patterns
  • Create blank capture groups to handle inconsistent data
  • Capture parts of a pattern in a group to display, replace, or use character sets to match characters

Authors

Book Details

ISBN 139781783282258
Paperback112 pages
Read More

Read More Reviews

Recommended for You

Learning JavaScript Data Structures and Algorithms - Second Edition Book Cover
Learning JavaScript Data Structures and Algorithms - Second Edition
$ 35.99
$ 25.20
Node.js Design Patterns - Second Edition Book Cover
Node.js Design Patterns - Second Edition
$ 39.99
$ 28.00
Object-Oriented JavaScript - Third Edition Book Cover
Object-Oriented JavaScript - Third Edition
$ 35.99
$ 25.20
Mastering JavaScript Functional Programming Book Cover
Mastering JavaScript Functional Programming
$ 35.99
$ 25.20
Learning jQuery 3 - Fifth Edition Book Cover
Learning jQuery 3 - Fifth Edition
$ 31.99
$ 22.40
MEAN Cookbook Book Cover
MEAN Cookbook
$ 35.99
$ 25.20