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 777265
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T19:34:41+00:00 2026-05-14T19:34:41+00:00

I am having problems trying to use the regular expression that I used in

  • 0

I am having problems trying to use the regular expression that I used in JavaScript. On a web page, you may have:

<b>Renewal Date:</b> 03 May 2010</td>

I just want to be able to pull out the 03 May 2010, remembering that a webpage has more than just the above content. The way I currently perform this using JavaScript is:

DateStr = /<b>Renewal Date:<\/b>(.+?)<\/td>/.exec(returnedHTMLPage);

I tried to follow some tutorials on java.util.regex.Pattern and java.util.regex.Matcher with no luck. I can’t seem to be able to translate (.+?) into something they can understand??

thanks,

Noeneel

  • 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-14T19:34:42+00:00Added an answer on May 14, 2026 at 7:34 pm

    This is how regular expressions are used in Java:

    Pattern p = Pattern.compile("<b>Renewal Date:</b>(.+?)</td>");
    Matcher m = p.matcher(returnedHTMLPage);
    
    if (m.find()) // find the next match (and "generate the groups")
        System.out.println(m.group(1)); // prints whatever the .+? expression matched.
    

    There are other useful methods in the Matcher class, such as m.matches(). Have a look at Matcher.

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

Sidebar

Related Questions

I'm having problems trying to use an array of structs which doesn't have an
I'm having problems trying to use the friend feature of C++. I have these
I'm trying to use HTTPWebRequest to access a web service, and am having problems
I am having problems when trying to use a rails variable within javascript code.
I am having problems when trying to use a TypedFactoryFacility in Castle. I'm using
I'm trying to use HTTPWebRequest to access a REST service, and am having problems
I'm trying to use the SWI-Prolog JPL library, but I'm having problems. I'm trying
am having quite alot of problems trying to use embeded fonts in flex 4.
I've been having quite a few problems trying to use Microsoft.SqlServer.Types.SqlGeography . I know
I'm having problems trying to call a Javascript function from an enqueued javascript file

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.