substring numeric variables w/ regexp