It returns `null` or `array` with matched string.