hasFunction implementation
hasFunction changed definition, add boost/regex header