Get a free trial // Grow your CSS skills // Land your dream job

Regular expression to get sass imports.

  • # April 13, 2013 at 1:17 pm

    Hi guys can you provide me regular expression to match sass and scss style @imports.

    I have tried


    But it is giving me only the first @import of list

    @import “mainstyle”,

    It is giving me just mainstyle not the other ones. Please help.

    Here is the [pen]( on codepen.

    # April 14, 2013 at 5:30 am

    Solved myself. Not the best solution but works.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed