Tell me more ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

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.

share|improve this question

closed as off topic by Yannis Rizos May 9 at 4:37

Questions on Programmers Stack Exchange are expected to relate to software development within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.

If this question can be reworded to fit the rules in the help center, please edit the question.

Browse other questions tagged or ask your own question.