I have lines that look like this
01:04:43.064 [12439] <2> xyz
01:04:43.067 [12439] <2> a lmn
01:04:43.068 [12439] <4> j klm
x_times_wait to <3000>
01:04:43.068 [12439] <4> j klm
enter_object <5000> main k
I want a regex to extract only the values after the angular brackets for lines that start with a timestamp
This is what I have tried - assuming that these lines are in a data frame called nn
split<-str_split_fixed(nn[,1], ">", 2)
split2<-data.frame(split[,2])
The problem is that split2 gives
xyz
a lmn
j klm
j klm
main k
How can I make sure that the empty line and main k is not returned?