A collection of useful regular expressions I use or I’ve used during my coding life. They are written using Perl notation.
CSS : find all the the last rules not terminating with a semi-colon and put one:
s/(\w|\d)(?!;)(\s*|\n)(})/$1;$2$3/g

A collection of useful regular expressions I use or I’ve used during my coding life. They are written using Perl notation.
CSS : find all the the last rules not terminating with a semi-colon and put one:
s/(\w|\d)(?!;)(\s*|\n)(})/$1;$2$3/g

No comments yet.