I have a string like this:
myString <- "[0.15][4577896]blahblahblahblahwhatever"
I need to extract the number between second brackets.
Currently I am trying to use this:
str_extract(myString, "\\]\\[(\\d+)")
But this gives me ][4577896
My desired result would be: 4577896
How could I achieve this?
stringr::str_extract(myString, "(?<=\\]\\[)(\\d+)")