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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T11:12:52+00:00 2026-06-13T11:12:52+00:00

I have a large XML file that I now want to parse. The XML

  • 0

I have a large XML file that I now want to parse. The XML is fundamentally broken, and with over 2000 lines, I’m trying to avoid a hand cranked fix 😉

Can I use regex replace in Notepad++ to do this?

<Sensor ID="21.1.1_L"/>

to

<Sensor ID="21.1.1_L">

losing the tag close slash in all “Sensor” tags (and bearing in mind that I cannot simply replace /> with > and the ID is variable, including it’s length and may or may not have the trailing underscore and alpha).

Thanks for any suggestions.

  • 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-13T11:12:52+00:00Added an answer on June 13, 2026 at 11:12 am

    This should work: Search for

    (<Sensor [^<>]*)/>
    

    and replace all with

    \1>
    

    [^<>]* will match any number of characters except angle brackets (this is to make sure that we can never match across a tag’s boundary). Then, /> matches only if the current tag ends with a slash.

    You will need to turn on regex matching in Notepad++, of course.

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

Sidebar

Related Questions

I want to parse a large XML file and I have two options: Perl
I have a very large XML file that I need to parse so I
I have a large XML file (3000+ nodes) that I want to represent in
I have this large XML file. There is a field that I want to
I have a large xml file that looks like this: 20120124 07:30:15.301, saving to
I have a large XML file (many MBs) that I cannot afford to download
I have a request that returns a large xml file. I have the file
I have a large XML file (converted to JSON) that consists of multiple repeating
What I have: A large XML file @ nearly 1 million lines worth of
I have a large xml file (40 Gb) that I need to split into

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.