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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T07:43:26+00:00 2026-06-03T07:43:26+00:00

(?<selector>[^\{\s]+\w+(\s\[^\{\s]+)?)\s?\{(?<style>[^\}]*)\} The above matches almost all cases. audio:not([controls]) { display:none } Anything like this

  • 0
(?<selector>[^\{\s]+\w+(\s\[^\{\s]+)?)\s?\{(?<style>[^\}]*)\}

The above matches almost all cases.

audio:not([controls])
{
   display:none
}

Anything like this however (with the square brackets), does not match properly.

button,input[type="button"],input[type="reset"],input[type="submit"]
{
   cursor:pointer;-webkit-appearance:button
}
input[type="search"]::-webkit-search-decoration,input[type="search"]::-webkit-search-cancel-button
{
   -webkit-appearance:none
}

these too…

  • 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-03T07:43:28+00:00Added an answer on June 3, 2026 at 7:43 am

    Try this:

    (?<=\}\s*)(?<selector>[^\{\}]+?)(?:\s*\{(?<style>[^\{\}]+)\})
    

    Explanation:

    // (?<=\}\s*)(?<selector>[^\{\}]+?)(?:\s*\{(?<style>[^\{\}]+)\})
    // 
    // Options: case insensitive; ^ and $ match at line breaks
    // 
    // Assert that the regex below can be matched, with the match ending at this position (positive lookbehind) «(?<=\}\s*)»
    //    Match the character “}” literally «\}»
    //    Match a single character that is a “whitespace character” (spaces, tabs, and line breaks) «\s*»
    //       Between zero and unlimited times, as many times as possible, giving back as needed (greedy) «*»
    // Match the regular expression below and capture its match into backreference with name “selector” «(?<selector>[^\{\}]+?)»
    //    Match a single character NOT present in the list below «[^\{\}]+?»
    //       Between one and unlimited times, as few times as possible, expanding as needed (lazy) «+?»
    //       A { character «\{»
    //       A } character «\}»
    // Match the regular expression below «(?:\s*\{(?<style>[^\{\}]+)\})»
    //    Match a single character that is a “whitespace character” (spaces, tabs, and line breaks) «\s*»
    //       Between zero and unlimited times, as many times as possible, giving back as needed (greedy) «*»
    //    Match the character “{” literally «\{»
    //    Match the regular expression below and capture its match into backreference with name “style” «(?<style>[^\{\}]+)»
    //       Match a single character NOT present in the list below «[^\{\}]+»
    //          Between one and unlimited times, as many times as possible, giving back as needed (greedy) «+»
    //          A { character «\{»
    //          A } character «\}»
    //    Match the character “}” literally «\}»
    

    No blank style, pattern is not going to match!

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

Sidebar

Related Questions

$('.selector').qtip({ content: { text: function(api) { return $(this).children('.tip').clone(); } }, style: { classes: 'ui-tooltip-rounded',
Is there any way I can modify some style to all elements that matches
Is there a CSS selector to select this element by its inline style attribute
My Html is like this: <a class=another addAnother>Add another</a> I defined a style for
$('#selector').click(function() { // here I would like to load a javascript file // let's
I have a calender selector that looks like <asp:ImageButton ID=calStartImage runat=server ImageUrl=../images/SmallCalendar.gif AlternateText=Please select
I see this selector $( 'a + .firstSection a' ).live( 'click', function(){ in my
Is there a way to select all elements that have a given style using
The UINavigationBar is RedColour. UIBarButtonItem *barButton = [[UIBarButtonItem alloc] initWithTitle:@Hello style:UIBarButtonItemStylePlain target:self action:@selector(bbPressed:)]; self.navigationItem.rightBarButtonItem=barButton
I'm struggling to get some var'ed values into jquery selector. // this works below

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.