in reply to Extracting Lines of a text file

What if the you have

aaa bbb ccc ddd ccc eee fff
and you search for "ccc". Do you want
bbb ccc ddd ccc eee

or

bbb ccc ddd ddd ccc eee

or something else?

Also, is the input a text string or a regex pattern. You imply it's the former ("term"), but treat it as the latter (/$input/ instead of /\Q$input\E/).

Replies are listed 'Best First'.
Re^2: Extracting Lines of a text file
by baxy77bax (Deacon) on Nov 04, 2008 at 12:01 UTC
    ... sh..., you are right, my mistake!