Z
Z
zelsky2016-03-31 14:08:39
Regular Expressions
zelsky, 2016-03-31 14:08:39

Building Regex css classes?

It is necessary to parse the css class depending on the name
, that is, there is a class

.fui-arrow-right:before  {
content: "02c";
}

You need to select the entire line, that is, from ..fui-arrow-right:before to "}"
My example.
^\.fui-arrow-right:before*(.*)[}]$
Here's what I came up with.
^\.fui-arrow-right:before(.+\n.+\n)[}]$
Parse with two translations. Now the next question is how to do .+\n an unlimited number of times before the character "}"

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
pilartser, 2016-04-01
@pilartser

(\.fui-arrow-right:before(?:(?:.)*\n)*})

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question