The regex "^\\d+\\s" will match the numbers and space after that, anchored to the beginning of the string. You can use it with the string manipulation function of your choice. Technically, if you use it with sub or other function that only does one replace, you don't need the ^ to anchor the regex to the beginning of the string, but it pays to be explicit when working with regexes.