fork download
  1. <?php
  2.  
  3. $string = 'LONDON Remote server cluster 88: taken
  4. udp://8379f690ba57e0fdf8f944324a4453de67780
  5.  
  6. BRUSSELS: Hosted MPLS cluster
  7. udp://5b0e9bc72b989c87a9a70da7865dbb5b4aa9c086
  8.  
  9. PARIS: Hosted atrium access
  10. udp://39415215319c9brt6b9c7d10238c19cc82e7f88b
  11.  
  12. PRAGUE: Main Office acces
  13. udp://e721f751ab0936706192cf15b4632889b38f131a';
  14.  
  15. $data = preg_replace('#udp://(.*)#', 'http://www.$1/tsa.a3m', $string);
  16. echo $data;
Success #stdin #stdout 0.03s 52480KB
stdin
Standard input is empty
stdout
LONDON Remote server cluster 88: taken
http://www.8379f690ba57e0fdf8f944324a4453de67780/tsa.a3m

BRUSSELS: Hosted MPLS cluster
http://www.5b0e9bc72b989c87a9a70da7865dbb5b4aa9c086/tsa.a3m

PARIS: Hosted atrium access
http://www.39415215319c9brt6b9c7d10238c19cc82e7f88b/tsa.a3m

PRAGUE: Main Office acces
http://www.e721f751ab0936706192cf15b4632889b38f131a/tsa.a3m