alkis has asked for the wisdom of the Perl Monks concerning the following question:
i want to extract the whole sentence (line)and keep it to a string only if a search word is found in this sentence. also is it possible, in the result the word searched to be displayed in bold?
the text file that has to be searched looks like this:
thanks for your advicenumber:.........#end of line ......................................................#end of line + number:........#end of line .....................................................#end of line number:.......#end of line ......................................................#end of line
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: extract whole sentence after a match of a word
by hipowls (Curate) on Feb 26, 2008 at 12:17 UTC | |
|
Re: extract whole sentence after a match of a word
by olus (Curate) on Feb 26, 2008 at 12:36 UTC | |
|
Re: extract whole sentence after a match of a word
by moritz (Cardinal) on Feb 26, 2008 at 12:20 UTC | |
|
Re: extract whole sentence after a match of a word
by Erez (Priest) on Feb 26, 2008 at 12:42 UTC | |
|
Re: extract whole sentence after a match of a word
by alkis (Acolyte) on Feb 27, 2008 at 15:35 UTC |