in reply to Wildcard question

Please see the discussion of Problems counting regex matches. Also please understand that little details like just what the 'command' and the program are can matter quite a lot. Please see How do I post a question effectively? and How (Not) To Ask A Question.

Replies are listed 'Best First'.
Re^2: Wildcard question
by oiskuu (Hermit) on Jan 16, 2014 at 10:58 UTC

    "You shall know a word by the company it keeps."

    This is a common task in linguistic analysis. There is no mention of regular expressions anywhere in the question.
    (Indeed, I would approach this problem by tokenizing the text into array of words.)