def _get(self, text):
if self.strict:<EOL><INDENT>match = self.prog.match(text)<EOL>if match:<EOL><INDENT>cmd = match.group()<EOL>if cmd in self:<EOL><INDENT>return cmd<EOL><DEDENT><DEDENT><DEDENT>else:<EOL><INDENT>words = self.prog.findall(text)<EOL>for word in words:<EOL><INDENT>if word in self:<EOL><INDENT>return word<EOL><DEDENT><DEDENT><DEDENT>
Analyze the text to get the right function

Parameters
----------
text : str
    The text that could call a function