Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8841085
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T10:37:26+00:00 2026-06-14T10:37:26+00:00

I have a string where im trying to extract a specic section of words

  • 0

I have a string where im trying to extract a specic section of words and was hoping if someone could help me with a safe way of parsing the string to get just this sections. The string is formated as such…

_____ _____ replied to _____ _____ about the **THIS IS THE PART I NEED TO GET** topic in the _____ forum.

Wherever there is a blank than it is possible that any word could be there, also the part that i need to get could be of any length.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T10:37:28+00:00Added an answer on June 14, 2026 at 10:37 am

    Here is a regex that matches what you posted and extracts the content that you put in the ** in a group.

    ^.*replied to.*about the (.*) topic in the .* forum\.$
    

    You can test it here.

    The non-greedy version looks like

    ^.*?replied to.*?about the (.*) topic in the .* forum\.$
    

    You can test it here.

    These are the RAW regular expressions, for Java you need to escape the \ with \\.

    unlike most regex questions here this one is actually a good fit for a regular expression

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to extract values from a string, I have tried to get
I have a string and am trying to findout what's a better way by
I have a string that i am trying to extract patterns from, the string
I have this string: £1,134.00 (£1,360.80 inc VAT) And I am trying to extract
I am trying to extract the word need from this string. ctl00_ctl00_ContentMainContainer_ContentColumn1__needDont_Panel1 I have
I am trying to extract some words from a string. The two cases look
I have a string that and I am trying to extract the characters before
I have a webpage converted to a string and I'm trying to extract three
I have a string from which I am trying to get a specif value.
I have string like this: Alex Jatt, (alex.jatt@domain.com) amd I'm trying to extract only

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.