updated emoticon parser matching logic with regex