in reply to regular expression
the code is untested and surely contains error.$lengeth=length($x) $temp=substr($x,6) //to get the first six digits $temp1=substr($x,($length-4),$length) //to get the last 4 for(int i=0;i<($length-10);i++) { $temp +='X'; } $temp +=$temp1;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: regular expression
by marto (Cardinal) on Feb 15, 2012 at 12:18 UTC | |
by ansh batra (Friar) on Feb 16, 2012 at 13:33 UTC | |
by marto (Cardinal) on Feb 16, 2012 at 13:46 UTC |