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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T10:44:09+00:00 2026-06-03T10:44:09+00:00

Im trying to get in a css all the atributes that aren’t less variables

  • 0

Im trying to get in a css all the atributes that aren’t less variables inside the { }

So far my RegExp is like this:

\s*[a-zA-Z-]*:[^@].*?;

Example Text

@footerBackground: @Color1;
@footerText: @Color3;
footer          { background:@footerBackground url(images/bg.transp.fabric-45degreee_fabric.png) repeat; box-shadow:0 -1px 3px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(0, 0, 0, 0.1); bottom:0; color:@footerText; position:absolute; width:100%; }
footer a        { color:@footerLink !important; }
footer a:hover  { color:darken(@footerLink, 15%) !important; text-decoration:none; }
#footer-widgets { border-bottom:1px darken(@footerBackground,10%) dotted; padding:20px 0; }

Can anyone tell me how can i do this expression?

example

discart if have @ - color:darken(@tuningfooterLink, 15%) !important;
get - text-decoration:none;
  • 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-03T10:44:12+00:00Added an answer on June 3, 2026 at 10:44 am

    I dont know powershell, but ill have a go at the regex:

    ([a-zA-Z_-]+:[^}{@]*?;) should capture any css class attribute not containing @ I think

    ( #group1
      [a-zA-Z_-] #Character class matching a-z, A-Z, _ and -
      + #match character class atleast once (applies to [a-zA-Z_-])
      : #match a :
      [^}{@] #Character class matchting all characters except {, }. and @
      + #match character class atleast once (applies to [^}{@])
      ? #dont be a greedy matcher (applies to +)
      ; #match a ; the closing char for any valid CSS rule
    ) #close group1
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to get all css link from html like this segment of
I'm trying to get this css layout to work with IE7 and I'm a
I'm trying to get a list of all the js files that changed to
I'm trying to get a 3rd level of flyout/dropdown on this CSS navigation menu.
I have been trying to get yui-css grid system to make a three column
I'm trying to get the width of a div container to set another css
I have css hover over images for my tabs and I'm trying to get
Trying to make a floating css menu. How do I get the floating div
I am trying get all html links within a string and replace them using
Okay, so I'm trying to get into this whole HTML 5 thing, and this

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.