How could I capture just everything before the underscore using regular expressions for the following group of strings? These strings are in an element of an array.
"FBXW7_NM_018315_2" "PTEN" "TP53_ENST00000413465"
I am very new to programming and I have just picked this skill up recently.