Could somebody help me with regexp?
I have text like this
selection 1
67-98
end selection
selection 2
49-66
end selection
selection 3
1-48
end selection
selection very_long_name_of_selection_set
1-48
end selection
I have to get words [1,2,3,very_long_name_of_selection_set] by perl script.
I know how I can get full strings [selection 1,selection 2,selection 3,selection very_long_name_of_selection_set]
But I need only 1 word after "selection"
Wich regexp can do it?
Thank you!
Alex