V
V
Vitaly Mironov2018-05-05 13:51:20
css
Vitaly Mironov, 2018-05-05 13:51:20

How to remove a regular expression pseudo-selector?

Good day, how can I remove the pseudo selector from the rule with a regular expression?
Example

p::hover{

}
b:ntd-child(2n){

}
a:first-letter{
  display:block;
}
a::first-letter{
  display:block;
}

To become
b{

}
p{

}
a{
  display:block;
}
a{
  display:block;
}

I wrote, but it deletes everything https://regex101.com/r/Ij3WaL/4

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Shamanov, 2018-05-08
@SilenceOfWinter

:(.*?){https://regex101.com/r/Ij3WaL/9

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question