i'm looking for a regex to find the CSS shortcut character pattern form top-right-bottom-left (ie: 10px 20px 40px 0) and swap item number 2 with item number 4 (swap left and right). preferably this regex should be able to identify px values as well as % and em, and will take into account that 0 can be present without any identifier.
See Question&Answers more detail:os