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

  • SEARCH
  • Home
  • 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 6533321
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T10:06:40+00:00 2026-05-25T10:06:40+00:00

This is only for a small Android program I am messing with so I

  • 0

This is only for a small Android program I am messing with so I only need to match one or two tags

I have one HTML tag and I can get whats inside that tag which is “FC-Cologne”
I use this code to get it

Pattern pattern = Pattern.compile("report\">(.*?)</a>",Pattern.MULTILINE);

here is the HTML tag I can get to work

<a href=”/match-menu/3405570/first-team/fc-cologne=report”> FC Cologne</a>

But I can’t get this tag, I don’t know is it because of the space after the word “opposition” or/and the quotes inside the HTML tag, because they are not in the first tag

This is the one I can’t get to work

<td class=”bold opposition “> “Olympiacos” </td>

This is the code I am trying

Pattern pattern = Pattern.compile("opposition \">(.*?)</td>",Pattern.MULTILINE);

I have tried replacing the spaces ” ” with “” an empty string and I have tried \s where the space is but I get nothing.

I would appreciate if anyone could help me.

  • 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-05-25T10:06:41+00:00Added an answer on May 25, 2026 at 10:06 am

    Unless you have a typo in one of the two – < /td> has a space after the < and in your regex </td> doesn’t.

    Adding a space to the regex after the < caused the match to succeed in RegexBuddy

    Update: Seems the space is not in the tag the OP is working with.

    In RegexBuddy I have the pattern (copied as a Java String)

    "opposition \">(.*?)</td>"
    

    which matches the html

    < td class="bold opposition "> "Olympiacos"       </td>
    

    giving a match of

    opposition "> "Olympiacos"       </td>
    

    and Group 1 of

     "Olympiacos"       <--Line ends there.
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Does this smell? I have a few properties you can only set once. They
I have two problems in my program: 1.After taking a picture, this is what
I am not sure whether this only happens to me. Basically if I have
I have the following code in a shell script. This only seems to work
This is only tangentially a programming question. Where can I find a simple-to-parse list
On a touch device like iPhone/iPad/Android it can be difficult to hit a small
I have a small test app on Android that is meant to test tracking
Good afternoon. I have been making a small openGL based app for android that
I have written a small android app that grabs some data and displays it
I am working on an Android opengl lib and have hit a small issue.

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.