Regular expressions describe a pattern of characters used for searching a string. They are very useful for parsing information like dates, phone numbers, or zip codes from important text files such as code files, log files, spreadsheets, or documents.
Below are the most common use cases of regular expressions:
- Data validation of data fields or values like phone numbers, zip codes, email addresses, etc.
- Information extraction from text files for further processing
- Pattern matching of strings or textual information
- Search and replace operation on texts
This course will teach you how to perform pattern matching with a regular expression using a Java API for these practical use cases.
Regular expressions describe a pattern of characters used for searching a string. They are very useful for parsing information l...Show More
WHAT YOU'LL LEARN
Introduction to regular expressions
Using regular expression APIs from java.util.regex package
Different types of characters, and whitespaces
Character classes, meta-characters and qualifiers
Character ranges and character repetitions
Using Pattern, Group and Matcher classes
Creating regular expression patterns using flags
Making regular expressions more accurate using modifiers
How to match single, multiple and range of characters using optional characters and wildcards
Performing search and replace operation on strings using regular expressions
Analyzing text files with regular expressions
Using named groups in regular expressions
Introduction to regular expressions
Show more
TAKEAWAY SKILLS
Content
1.
Introduction
2 Lessons
2.
Java Regex APIs
2 Lessons
3.
Building Blocks of Regular Expressions
4 Lessons
4.
Course Wrap Up
5 Lessons
Certificate of Completion
Showcase your accomplishment by sharing your certificate of completion.
Course Author:
Developed by MAANG Engineers
Trusted by 2.8 million developers working at companies
"These are high-quality courses. Trust me. I own around 10 and the price is worth it for the content quality. EducativeInc came at the right time in my career. I'm understanding topics better than with any book or online video tutorial I've done. Truly made for developers. Thanks"
Anthony Walker
@_webarchitect_
"Just finished my first full #ML course: Machine learning for Software Engineers from Educative, Inc. ... Highly recommend!"
Evan Dunbar
ML Engineer
"You guys are the gold standard of crash-courses... Narrow enough that it doesn't need years of study or a full blown book to get the gist, but broad enough that an afternoon of Googling doesn't cut it."
Software Developer
Carlos Matias La Borde
"I spend my days and nights on Educative. It is indispensable. It is such a unique and reader-friendly site"
Souvik Kundu
Front-end Developer
"Your courses are simply awesome, the depth they go into and the breadth of coverage is so good that I don't have to refer to 10 different websites looking for interview topics and content."
Vinay Krishnaiah
Software Developer
Hands-on Learning Powered by AI
See how Educative uses AI to make your learning more immersive than ever before.
AI Prompt
Code Feedback
Explain with AI
AI Code Mentor
Free Resources