<?php $address = "Flat 2 House Name 21 Another Road"; $address = preg_replace('/(Flat\s\d+) (\w+)(\s\d+)/i', '\\1, \\2, \\3', $address); echo $address;
You have javascript disabled. You will not be able to edit any code.