Use RegExp for matching