Mastering Regular Expressions in Java

Mastering Regular Expressions in Java

Quickly familiarize yourself with regular expressions in Java and learn how to use them in various use-cases related to string manipulation.

Beginner

13 Lessons

1h 20min

Certificate of Completion

Quickly familiarize yourself with regular expressions in Java and learn how to use them in various use-cases related to string manipulation.

AI-POWERED

Explanations

AI-POWERED

Explanations

This course includes

26 Playgrounds

This course includes

26 Playgrounds

Course Overview

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 text...Show More

TAKEAWAY SKILLS

Strings

Object Oriented Programming

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

What You'll Learn

Introduction to regular expressions

Show more

Course Author

Trusted by 1.4 million developers working at companies

Anthony Walker

@_webarchitect_

Evan Dunbar

ML Engineer

Carlos Matias La Borde

Software Developer

Souvik Kundu

Front-end Developer

Vinay Krishnaiah

Software Developer

Eric Downs

Musician/Entrepeneur

Kenan Eyvazov

DevOps Engineer

Souvik Kundu

Front-end Developer

Eric Downs

Musician/Entrepeneur

Anthony Walker

@_webarchitect_

Evan Dunbar

ML Engineer

Hands-on Learning Powered by AI

See how Educative uses AI to make your learning more immersive than ever before.

Instant Code Feedback

Evaluate and debug your code with the click of a button. Get real-time feedback on test cases, including time and space complexity of your solutions.

AI-Powered Mock Interviews

Adaptive Learning

Explain with AI

AI Code Mentor