
    h                     2    S SK rS SKJr  Sr " S S\5      rg)    N)OpRun)UOc                       \ rS rSrSS jrSrg)RegexFullMatch   Nc                   ^  SS K nUR                  R                  [        ;  a  [        SUR                   35      e UR                  U5      m[        R                  " U4S j[        R                  /S9nU" U5      4$ ! [         a  n[        S5      UeS nAff = f! UR                   a  n[        SU< 35      UeS nAff = f)Nr   zXre2 must be installed to use the reference implementation of the RegexFullMatch operatorz,Input must be string tensor, received dtype zInvalid regex pattern c                 *   > TR                  U 5      S L$ N)	fullmatch)xregexs    `/var/www/fran/franai/venv/lib/python3.13/site-packages/onnx/reference/ops/op_regex_full_match.py<lambda>%RegexFullMatch._run.<locals>.<lambda>   s    eooa(4    )otypes)re2ImportErrordtypekind_acceptable_str_dtypes	TypeErrorcompileerror
ValueErrornp	vectorizebool_)selfr   patternr   efullmatch_funcr   s         @r   _runRegexFullMatch._run   s    	 77<<55J177)TUU	JKK(E 4bhhZ
 q!##!  	j	 yy 	J5g[ABI	Js.   B  B  
B
BBC.B>>C r   )__name__
__module____qualname____firstlineno__r$   __static_attributes__r&   r   r   r   r      s    $r   r   )numpyr   onnx.reference.op_runr   r   r   r&   r   r   <module>r.      s     '# $U $r   