Perl regex extract parts of string with multiple condition
- by neversaint
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] (.*)$/;