--- MANEJADOR DE MASCARAS DE FORMATOS
--- DE TIPOS DE IDENTIFICACION

Create or replace package Formatos is

   Function ExpRegMatch(pValor in varchar2, pExpReg in varchar2) return boolean;
   --Function ExpReg(pMasc in varchar2) return varchar2;
   --Function Valida(pValor in varchar2, pMasc in varchar2, pExpReg in varchar2) return varchar2;

End Formatos;
/


Create or replace package body Formatos is

   Function ExpRegMatch(pValor in varchar2, pExpReg in varchar2) return boolean is
   begin
      return RegExp_like(pValor, pExpReg);
   end ExpRegMatch;

End Formatos;
/
