The Baeldung logo
  • The Baeldung Logo
  • Start Here
  • Courses ▼▲
    • REST with Spring

      The canonical reference for building a production grade API with Spring

    • Learn Spring Security ▼▲

      THE unique Spring Security education if you’re working with Java today

      • Learn Spring Security Core

        Focus on the Core of Spring Security 5

      • Learn Spring Security OAuth

        Focus on the new OAuth2 stack in Spring Security 5

    • Learn Spring

      From no experience to actually building stuff​

    • Learn Spring Data JPA

      The full guide to persistence with Spring Data JPA

  • Guides ▼▲
    • Persistence

      The Persistence with Spring guides

    • REST

      The guides on building REST APIs with Spring

    • Security

      The Spring Security guides

  • About ▼▲
    • Full Archive

      The high level overview of all the articles on the site.

    • Baeldung Ebooks

      Discover all of our eBooks

    • About Baeldung

      About Baeldung.

Java » Regex

Java is the popular programming language that originated in 1995. Today, the Java ecosystem includes a very large number of specifications, libraries, frameworks, tools, as well as a thriving community. Take a dive through our collection of Java tutorials that cover a wide array of Java-related topics.

  • Core Java (249)
  • Java String (176)
  • Java IO (100)
  • Java Streams (82)
  • Java List (73)
  • JVM (68)
  • Java Map (67)
  • Java Array (63)
  • Exception (52)
  • Java Dates (51)
  • Java 8 (40)
  • Math (36)
  • Pattern (36)
  • Java Set (26)
  • x Regex (25)
  • Java 9 (25)
  • Java NIO (24)
  • Reflection (22)
  • Java Interfaces (19)
  • Java Constructor (16)

>> Regular Expression: \z vs \Z Anchors in Java

>> Getting the Text That Follows After the Regex Match in Java

>> Find the First Embedded Occurrence of an Integer in a Java String

>> Guide to Splitting a String by Whitespace in Java

>> Capitalize the First Letter of a String in Java

>> Find Files That Match Wildcard Strings in Java

>> Creating a Java Array from Regular Expression Matches

>> Remove HTML Tags Using Java

>> Check if the First Letter of a String Is Uppercase

>> Splitting a Java String by Multiple Delimiters

>> Email Validation in Java

>> Converting Camel Case and Title Case to Words in Java

>> Lookahead and Lookbehind in Java Regex

>> Non-Capturing Regex Groups in Java

>> Understanding the Pattern.quote Method

>> Split a String in Java and Keep the Delimiters

>> Split Java String by Newline

>> How to Count the Number of Matches for a Regex?

>> Validate Phone Numbers With Java Regex

>> Regular Expressions \s and \s+ in Java

>> How to Use Regular Expressions to Replace Tokens in Strings in Java

>> Difference Between Java Matcher find() and matches()

>> Pre-compile Regex Patterns Into Pattern Objects

>> An Overview of Regular Expressions Performance in Java

>> A Guide To Java Regular Expressions API

  • ↑ Back to Top
res – REST with Spring (eBook) (cat=Java)
opt-in
Building a REST API with Spring 5?
Download the E-book
The Baeldung logo

Courses

  • All Courses
  • All Bulk Courses
  • All Bulk Team Courses
  • The Courses Platform

Series

  • Java “Back to Basics” Tutorial
  • Jackson JSON Tutorial
  • Apache HttpClient Tutorial
  • REST with Spring Tutorial
  • Spring Persistence Tutorial
  • Security with Spring
  • Spring Reactive Tutorials

About

  • About Baeldung
  • The Full Archive
  • Editors
  • Jobs
  • Our Partners
  • Partner with Baeldung
  • Terms of Service
  • Privacy Policy
  • Company Info
  • Contact
The Baeldung Logo

Follow the Java Category

Follow the Java category to get regular info about the new articles and tutorials we publish here.