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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T00:14:16+00:00 2026-06-04T00:14:16+00:00

Good afternoon all, I’ve noticed they’re a few similar problems on here already but

  • 0

Good afternoon all,

I’ve noticed they’re a few similar problems on here already but non have been of much help to me so far. I am trying to manipulate a String returned by and existing method to format it in to a readable form. So for example I am trying to creates a String replaceAll() regular expression which will take the string

"<ds:AddressLine1>Birkmire Farm</ds:AddressLine1><ds:AddressLine2>Some Village</ds:AddressLine2><ds:AddressLine3>Wigfield</ds:AddressLine3><ds:AddressLine4>Cumbria</ds:AddressLine4><ds:UKpostcode>CA9 1EJ</ds:UKpostcode>"

and convert it to…

Birkmire Farm, Some Village, Wigfield, Cumbria, CA9 1EJ

The way I envisaged doing this was in three steps, firstly to replace all the closing tags with “”, then to replace all the opening tags with “, ” and finally use the String replaceFirst to remove the first comma and space placed at the front of the string.

The issue I am having is the RegEx I need to formulate a pattern to identify any opening tag ie and a pattern to identify any closing tag ie . Any help on this would be greatly appreciated.

  • 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-04T00:14:18+00:00Added an answer on June 4, 2026 at 12:14 am

    RE for opening tag: <[^/][^>]*>.
    RE for closing tag: </[^>]*>.

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

Sidebar

Related Questions

Good afternoon, all. I'm not too hopeful for a yes here, but if anyone
Good afternoon all Here is my scenario: I have user controls within a master
Good afternoon. I have a Model that has a field called percentage. All similar
Good Afternoon all , I have downloaded data from a web service and im
Good Afternoon All, I have two tables in my SQL Server 2005 DB, Main
Good afternoon all, I have a Java applet that I wish to embed on
Right, Good afternoon all (well, it is afternoon here in the UK!) I am
Good Afternoon All, I have a wizard control that contains 20 textboxes for part
Good Afternoon All, I have written an SSIS 2005 package that contains a conditional
Good afternoon all, I dont know why this is proving so difficult but I

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.