Improved KeywordParser by using RegExp.