add regex sample code