I don't understand why wouldn't this regex :
if(m/\s+([\w+\+-])\s+\/\s+\+\s+\w+\s+\ w+\s+\w+\s+\w+$/)
match the second NA
in this string (all in one line):
NA hsa-mir-129-1 hsa-mir-129-1 Targets No Relationship to Gene 7 NA / + NA NA 127635160 127635232
if(m/\s+([\w+\+-])\s+\/\s+\+\s+\w+\s+\ w+\s+\w+\s+\w+$/)
match the second NA
in this string (all in one line):
NA hsa-mir-129-1 hsa-mir-129-1 Targets No Relationship to Gene 7 NA / + NA NA 127635160 127635232
Comment