Could anyone please tell me how to write perl regex which contains prefix or not + 9 number string which can contain only 5 reps of single number. I can not find constraint for replication.
I use perl regular expression in sas
data regexp;
if _n_=1 then pattern=prxparse("~^(48|0|48|0048|)+[1-9]{1}+[0-9]{8}~o"); retain pattern; set new;
if prxmatch(pattern,nr_tel) then flg=1; else flg=0;run;
Thank you.