I would think you would need to use Regular Expressions.