Movatterモバイル変換


[0]ホーム

URL:


Packt
Search iconClose icon
Search icon CANCEL
Subscription
0
Cart icon
Your Cart(0 item)
Close icon
You have no products in your basket yet
Save more on your purchases!discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Profile icon
Account
Close icon

Change country

Modal Close icon
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timerSALE ENDS IN
0Days
:
00Hours
:
00Minutes
:
00Seconds
Home> Programming> Functional Programming> Java 9 Regular Expressions
Java 9 Regular Expressions
Java 9 Regular Expressions

Java 9 Regular Expressions: A hands-on guide to implement zero-length assertions, back-references, quantifiers, and many more

Arrow left icon
Profile Icon Anubhava Srivastava
Arrow right icon
₹799.99₹2323.99
Full star iconFull star iconFull star iconFull star iconFull star icon5(2 Ratings)
eBookJul 2017158 pages1st Edition
eBook
₹799.99 ₹2323.99
Paperback
₹2904.99
Subscription
Free Trial
Renews at ₹800p/m
Arrow left icon
Profile Icon Anubhava Srivastava
Arrow right icon
₹799.99₹2323.99
Full star iconFull star iconFull star iconFull star iconFull star icon5(2 Ratings)
eBookJul 2017158 pages1st Edition
eBook
₹799.99 ₹2323.99
Paperback
₹2904.99
Subscription
Free Trial
Renews at ₹800p/m
eBook
₹799.99 ₹2323.99
Paperback
₹2904.99
Subscription
Free Trial
Renews at ₹800p/m

What do you get with eBook?

Product feature iconInstant access to your Digital eBook purchase
Product feature icon Download this book inEPUB andPDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature iconDRM FREE - Read whenever, wherever and however you want
OR

Contact Details

Modal Close icon
Payment Processing...
tickCompleted

Billing Address

Table of content iconView table of contentsPreview book icon Preview Book

Java 9 Regular Expressions

Understanding the Core Constructs of Java Regular Expressions

Using Java as a regular expression flavor, in this chapter, we will go a bit deeper and learn in detail about anchors, quantifiers, boundary matchers, all the available character classes, negated character classes, predefined character classes, and character classes escaping rules, using Java as a reference point. You will also learn Unicode text matching, usingregular expressions in Java. We will also cover greedy versus non-greedy (lazy matching) and the change of regular expression behavior with lazy matching.

We will cover the following topics in this chapter:

  • Anchors and quantifiers
  • Boundary matchers
  • Character classes
  • Regex escaping rules
  • Escaping inside character classes
  • Negated character classes
  • Predefined character classes
  • Unicode characters matching
  • Greedy quantifiers
  • Lazy quantifiers
  • Possessive quantifiers...
Download code iconDownload Code

Key benefits

  • Discover regular expressions and how they work
  • Implement regular expressions with Java to your code base
  • Learn to use regular expressions in emails, URLs, paths, and IP addresses

Description

Regular expressions are a powerful tool in the programmer's toolbox and allow pattern matching. They are also used for manipulating text and data. This book will provide you with the know-how (and practical examples) to solve real-world problems using regex in Java.You will begin by discovering what regular expressions are and how they work with Java. This easy-to-follow guide is a great place from which to familiarize yourself with the core concepts of regular expressions and to master its implementation with the features of Java 9. You will learn how to match, extract, and transform text by matching specific words, characters, and patterns. You will learn when and where to apply the methods for finding patterns in digits, letters, Unicode characters, and string literals. Going forward, you will learn to use zero-length assertions and lookarounds, parsing the source code, and processing the log files. Finally, you will master tips, tricks, and best practices in regex with Java.

Who is this book for?

This book is for Java developers who would like to understand and use regular expressions. A basic knowledge of Java is assumed.

What you will learn

  • *Understand the semantics, rules, and core concepts of writing Java code involving regular expressions
  • *Learn about the java.util.Regex package using the Pattern class, Matcher class, code snippets, and more
  • *Match and capture text in regex and use back-references to the captured groups
  • *Explore Regex using Java String methods and regex capabilities in the Java Scanner API
  • *Use zero-width assertions and lookarounds in regex
  • *Test and optimize a poorly performing regex and various other performance tips

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date :Jul 25, 2017
Length:158 pages
Edition :1st
Language :English
ISBN-13 :9781787288034
Vendor :
Oracle
Category :
Languages :

What do you get with eBook?

Product feature iconInstant access to your Digital eBook purchase
Product feature icon Download this book inEPUB andPDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature iconDRM FREE - Read whenever, wherever and however you want
OR

Contact Details

Modal Close icon
Payment Processing...
tickCompleted

Billing Address

Product Details

Publication date :Jul 25, 2017
Length:158 pages
Edition :1st
Language :English
ISBN-13 :9781787288034
Vendor :
Oracle
Category :
Languages :
Concepts :

Packt Subscriptions

See our plans and pricing
Modal Close icon
₹800billed monthly
Feature tick iconUnlimited access to Packt's library of 7,000+ practical books and videos
Feature tick iconConstantly refreshed with 50+ new titles a month
Feature tick iconExclusive Early access to books as they're written
Feature tick iconSolve problems while you work with advanced search and reference features
Feature tick iconOffline reading on the mobile app
Feature tick iconSimple pricing, no contract
₹4500billed annually
Feature tick iconUnlimited access to Packt's library of 7,000+ practical books and videos
Feature tick iconConstantly refreshed with 50+ new titles a month
Feature tick iconExclusive Early access to books as they're written
Feature tick iconSolve problems while you work with advanced search and reference features
Feature tick iconOffline reading on the mobile app
Feature tick iconChoose a DRM-free eBook or Video every month to keep
Feature tick iconPLUS own as many other DRM-free eBooks or Videos as you like for just ₹400 each
Feature tick iconExclusive print discounts
₹5000billed in 18 months
Feature tick iconUnlimited access to Packt's library of 7,000+ practical books and videos
Feature tick iconConstantly refreshed with 50+ new titles a month
Feature tick iconExclusive Early access to books as they're written
Feature tick iconSolve problems while you work with advanced search and reference features
Feature tick iconOffline reading on the mobile app
Feature tick iconChoose a DRM-free eBook or Video every month to keep
Feature tick iconPLUS own as many other DRM-free eBooks or Videos as you like for just ₹400 each
Feature tick iconExclusive print discounts

Frequently bought together


Java 9 Programming Blueprints
Java 9 Programming Blueprints
Read more
Jul 2017466 pages
Full star icon5 (1)
eBook
eBook
₹799.99₹3276.99
₹4096.99
Java 9 Regular Expressions
Java 9 Regular Expressions
Read more
Jul 2017158 pages
Full star icon5 (2)
eBook
eBook
₹799.99₹2323.99
₹2904.99
Distributed Computing in Java 9
Distributed Computing in Java 9
Read more
Jun 2017304 pages
eBook
eBook
₹799.99₹2919.99
₹3649.99
Stars icon
Total10,651.97
Java 9 Programming Blueprints
₹4096.99
Java 9 Regular Expressions
₹2904.99
Distributed Computing in Java 9
₹3649.99
Total10,651.97Stars icon

Table of Contents

8 Chapters
Getting Started with Regular ExpressionsChevron down iconChevron up icon
Getting Started with Regular Expressions
Introduction to regular expressions
Summary
Understanding the Core Constructs of Java Regular ExpressionsChevron down iconChevron up icon
Understanding the Core Constructs of Java Regular Expressions
Understanding the core constructs of regular expressions
Quantifiers
Summary
Working with Groups, Capturing, and ReferencesChevron down iconChevron up icon
Working with Groups, Capturing, and References
Capturing groups
Non-capturing groups
Back references
Summary
Regular Expression Programming Using Java String and Scanner APIsChevron down iconChevron up icon
Regular Expression Programming Using Java String and Scanner APIs
Introduction to the Java String API for regular expressions' evaluation
Using regular expressions in Java Scanner API
Summary
Introduction to Java Regular Expression APIs - Pattern and Matcher ClassesChevron down iconChevron up icon
Introduction to Java Regular Expression APIs - Pattern and Matcher Classes
The MatchResult interface
The Pattern class
The Matcher class
Summary
Exploring Zero-Width Assertions, Lookarounds, and Atomic GroupsChevron down iconChevron up icon
Exploring Zero-Width Assertions, Lookarounds, and Atomic Groups
Zero-width assertions
\G boundary assertion
Atomic groups
Lookahead assertions
Lookbehind assertions
Summary
Understanding the Union, Intersection, and Subtraction of Character ClassesChevron down iconChevron up icon
Understanding the Union, Intersection, and Subtraction of Character Classes
The union of character classes
The intersection of character classes
The subtraction of character classes
Why should you use composite character classes?
Summary
Regular Expression Pitfalls, Optimization, and Performance ImprovementsChevron down iconChevron up icon
Regular Expression Pitfalls, Optimization, and Performance Improvements
Common pitfalls and ways to avoid them while writing regular expressions
How to test and benchmark your regular expression performance
Catastrophic or exponential backtracking
Optimization and performance enhancement tips
Summary

Recommendations for you

Left arrow icon
Debunking C++ Myths
Debunking C++ Myths
Read more
Dec 2024226 pages
Full star icon5 (1)
eBook
eBook
₹799.99₹2382.99
₹2978.99
Go Recipes for Developers
Go Recipes for Developers
Read more
Dec 2024350 pages
eBook
eBook
₹799.99₹2382.99
₹2978.99
50 Algorithms Every Programmer Should Know
50 Algorithms Every Programmer Should Know
Read more
Sep 2023538 pages
Full star icon4.5 (68)
eBook
eBook
₹799.99₹2978.99
₹3723.99
₹3723.99
Asynchronous Programming with C++
Asynchronous Programming with C++
Read more
Nov 2024424 pages
Full star icon5 (1)
eBook
eBook
₹799.99₹2502.99
₹3127.99
Modern CMake for C++
Modern CMake for C++
Read more
May 2024504 pages
Full star icon4.7 (12)
eBook
eBook
₹799.99₹2978.99
₹3723.99
Learn Python Programming
Learn Python Programming
Read more
Nov 2024616 pages
Full star icon5 (1)
eBook
eBook
₹799.99₹2382.99
₹2978.99
Learn to Code with Rust
Learn to Code with Rust
Read more
Nov 202457hrs 40mins
Video
Video
₹5585.99
Modern Python Cookbook
Modern Python Cookbook
Read more
Jul 2024818 pages
Full star icon4.9 (21)
eBook
eBook
₹799.99₹3276.99
₹4096.99
Right arrow icon

Customer reviews

Rating distribution
Full star iconFull star iconFull star iconFull star iconFull star icon5
(2 Ratings)
5 star100%
4 star0%
3 star0%
2 star0%
1 star0%
Amazon CustomerJun 08, 2018
Full star iconFull star iconFull star iconFull star iconFull star icon5
This book is enough to have an in depth knowledge in Regular expressions.
Amazon Verified reviewAmazon
JustinApr 19, 2018
Full star iconFull star iconFull star iconFull star iconFull star icon5
Amazingly insightful, here is a man that really knows his stuff and will help you figure out the most in depth problems. I would recommend this to anyone who actually wants to know how to solve problems with regex.
Amazon Verified reviewAmazon

People who bought this also bought

Left arrow icon
50 Algorithms Every Programmer Should Know
50 Algorithms Every Programmer Should Know
Read more
Sep 2023538 pages
Full star icon4.5 (68)
eBook
eBook
₹799.99₹2978.99
₹3723.99
₹3723.99
Event-Driven Architecture in Golang
Event-Driven Architecture in Golang
Read more
Nov 2022384 pages
Full star icon4.9 (11)
eBook
eBook
₹799.99₹2978.99
₹3723.99
The Python Workshop Second Edition
The Python Workshop Second Edition
Read more
Nov 2022600 pages
Full star icon4.6 (22)
eBook
eBook
₹799.99₹3562.99
₹3872.99
Template Metaprogramming with C++
Template Metaprogramming with C++
Read more
Aug 2022480 pages
Full star icon4.6 (14)
eBook
eBook
₹799.99₹3220.99
₹3500.99
Domain-Driven Design with Golang
Domain-Driven Design with Golang
Read more
Dec 2022204 pages
Full star icon4.4 (19)
eBook
eBook
₹799.99₹2680.99
₹3351.99
Right arrow icon

About the author

Profile icon Anubhava Srivastava
Anubhava Srivastava
Anubhava Srivastava has more than 22 years of professional experience in architecture, design, and software development. He specializes mainly in the J2EE technology stack, web technologies, CICD, test-driven development, and AWS cloud-based development. He is an active contributor to the Stack Overflow community. He currently stands in the top 35 users in terms of reputations out of the 7.5 million Stack Overflow users. He is passionate about regular expressions and is always willing to sharpen his regex skills further. He has answered close to 10,000 regex questions on Stack Overflow. He has authored and released a test-driven framework, called GenericFixture, for FitNesse as an open source software. You can follow him on Twitter at @anubhava.
Read more
See other products by Anubhava Srivastava
Getfree access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

How do I buy and download an eBook?Chevron down iconChevron up icon

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website?Chevron down iconChevron up icon

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook?Chevron down iconChevron up icon
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support?Chevron down iconChevron up icon

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks?Chevron down iconChevron up icon
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook?Chevron down iconChevron up icon

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.


[8]ページ先頭

©2009-2025 Movatter.jp