Perl regex extract parts of string with multiple condition

Posted by neversaint on Stack Overflow See other posts from Stack Overflow or by neversaint
Published on 2010-04-14T11:06:29Z Indexed on 2010/04/14 11:13 UTC
Read the original article Hit count: 486

Filed under:
|
|
|

What's the single regex that enables me to capture all the text that goes after are genes and is gene from this text

The closest human genes of best are genes A B C
The closest human gene of best is gene A 

Hence I hope to extract $1 that contain

A B C
A 

Tried this but fail:

$line =~ /The closest .* gene[s] (.*)$/;

© Stack Overflow or respective owner

Related posts about perl

Related posts about regex