I am trying to extract clock times from PGN chess notation. For example if I have the string:
"1. e4 {[%clk 0:00:59.5]} 1... b6 {[%clk 0:00:57.4]} 2. Nc3 {[%clk 0:00:59.4]} 2... Bb7 {[%clk 0:00:57.2]}"
How do I just get 59.5, 57.4 etc. ?
I am a beginner in R, I tried strsplit() with no luck
Here's a way using stringr package: