Cache regexp.

Allow data to be regexp from start.