Use gsub remove all string before first white space in R
In this example, we try to remove everything before a space with sub(".*? (.+)", "\\1", D$name). I'm looking for something really similar but I'm not really familiar with regex.
I want to delete everything before the first numeric character but without remove it
For example with:
x <- c("lala65lolo","papa3hihi","george365meumeu")
I want:
> "65lolo","3hihi", "365memeu"
sub("[^0-9]+", "", x)- akrun\\D+or [^0-9]+`, but after I posted the answer, a a similar answer got posted. So, I thought to keep it and then you commented. Anyway, it is okay - akrun