stephenjbell

Regular Expression - Add other vendor prefixes

Aug 16th, 2012
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. Run this on a CSS file with your favorite text editor. It will add the other vendor prefixes (moz, o, ms, no prefix), if you start with "-webkit-"
  2.  
  3. Find this regex:
  4. (.*)(-webkit-)(.*)
  5.  
  6. Replace with this:
  7. $1$2$3\r$1-moz-$3\r$1-o-$3\r$1-ms-$3\r$1$3
Advertisement
Add Comment
Please, Sign In to add comment