Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2019
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. $str = "old iccid : 809831 3245 345 new iccid : 999000 112221"
  2.  
  3. $output = "old iccid : 8098313245345 new iccid : 999000112221";
  4.  
  5. $output = preg_replace( '/d[ *]d/', '', $str);
  6.  
  7. $output = preg_replace('/(?<=d)s+(?=d)/', '', $str);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement