Update regex sample code.