To match strings of the format "lkas32kj_123_3.21" I use (in R)
grepl("^[[:alnum:]]+_[[:digit:]]+_[[:digit:]]+\\.{0,1}[[:digit:]]+$", "lkas32kj_123_3.21")
How can I extend this to cases with | repeating/compound strings of any length such as (length three) "lkas32kj_123_3.21|l3kj_12_0.21|123e_4_32.1".
Is there a way to make a nested (recursive ?) pattern ?