refractor using regexp