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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T16:03:22+00:00 2026-06-05T16:03:22+00:00

The code that I am working with has tons of style that I want

  • 0

The code that I am working with has tons of style that I want to remove. Here is the code snippet

asp:Label ID="LabelMeterNo" runat="server" Font-Names="Tahoma" 
Style="z-index: 126; left: 72px;  top: 203px" Text="MeterNo"
Width="136px"></asp:Label>

The previous programmer used the z-index and position for every single control on the page. There are too many to search and find them one by one. Is there a regular expression that will catch this

Style="z-index: 126; left: 72px;  top: 203px"
Style="z-index: 124; left: 216px;
             top: 261px"
Style="z-index: 124; left: 216px;
             top: 291px"

There are certainly more combination of this. Notice the new line character in 2 and 3 example above.

What I would want is search for

Style="Z-index:126; left:72px; right;200px; top:23px; position:relative"

That is start from Style=”Z-index and end at the quotation mark. Is there a way to do it?

Here is a page that can be used for reference

  • 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-05T16:03:23+00:00Added an answer on June 5, 2026 at 4:03 pm

    I’m by no means a regex expert so this can probably be cleaned/fixed a bit but since I just found out today about Visual Studio’s interesting regex syntax I thought I’d give this a shot. This works for me with your test data in Visual Studio:

    Style\=\"[Zz]-index\:[a-zA-Z0-9; \::Cc]+\"

    Note some characters are escaped like =, “, : and I also use :Cc to match the newline. You may want to do something to ignore the case for the word Style as well.

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

Sidebar

Related Questions

I'm working with Fortran code that has to work with various Fortran compilers (and
I am working on a jquery code that has a form country dropdown list
I'm working on a bit of c# code that first has the user click
Here's my code that is not working: print To: ; my $to=<>; chomp $to;
I have a code that has been working for almost 4 years (since boost
I have some code that has been working since it's beginning, well over a
This isn't my code, I'm just troubleshooting it. Some code that has been working
I have some code that I am working on that has inline values such
I'm trying to get some code working that a previous developer has written. Yep,
I've got a code base that has been working for months, today i deployed

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.