Skip to content

Instantly share code, notes, and snippets.

@RamiKrispin
Created May 27, 2021 13:29
Show Gist options
  • Select an option

  • Save RamiKrispin/50582c563beaef32ac35066aeb693cef to your computer and use it in GitHub Desktop.

Select an option

Save RamiKrispin/50582c563beaef32ac35066aeb693cef to your computer and use it in GitHub Desktop.
Parsing the text follow the dot
x <- "Plan_Fc.Plan_Fc_Doppler_US"
s <- unlist(regexec(pattern = "\\.", text = x)) + 1
e <- nchar(x)
substr(x = x, start = s, stop = e)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment