---
title: "Discussion on \"RegEx  - Extracting Strings (part 2 of 2)\" | Hashnode"
description: "Discussion on \"RegEx  - Extracting Strings (part 2 of 2)\". In the last article, we learned how to write and match aregex. Now we'll look at how to extract the string that matches the regex in Java."
url: "https://hashnode.com/posts/regex-extracting-strings-part-2-of-2/645f6f01a838f3f98a5c3815"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [RegEx - Extracting Strings (part 2 of 2)](https://blog.rizwan.io/regex-extracting-strings-part-2-of-2?utm_source=hashnode&utm_medium=feed)

In the last article, we learned how to write and match aregex. Now we'll look at how to extract the string that matches the regex in Java.

May 13, 2023 · 7 min read · blog.rizwan.io  
Updated May 26, 2023  
Read the article

-   [#regex](https://hashnode.com/tag/regex)
-   [#java](https://hashnode.com/tag/java)
-   [#beginners](https://hashnode.com/tag/beginners)
-   [#2articles1week](https://hashnode.com/tag/2articles1week)

## Written by

[Rizwan Shaikh](https://hashnode.com/@rizwan-io)

@rizwan-io · Mumbai, India

  
[View profile](https://hashnode.com/@rizwan-io)

Software Engineer

I'm a developer specialising in the backend and cloud.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
