@NogDogJan 09.2007 — #[code=php] <?php $testData = array( '£165,454.34', '£23,934', '£blah', '£23 pounds', '£23.39.39' ); foreach($testData as $input) { $output = round(preg_replace('/[^d.]/', '', $input), 2); echo "<p>$output</p>n"; } ?>[/code] NOTE: this won't care if the input starts with a "£", "$", or no currency symbol.