added regex sample code