in reply to Re^2: extracting search term context
in thread extracting search term context

probably a little better would be to use \b and \w instead of defining a word and separator from sratch

I invite you to demonstrate this.

reading one extra word from the file

How do you read a "word" from a file?


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
RIP an inspiration; A true Folk's Guy