Find '(\d.)px' Replace $1 '10px' is replaced with 10 Note: styled-components needs px so do not find-replace any units ending in ;