Add regexp implementation.