Hi all

I'm trying to fix a line that looks like this:

123 MAIN STREET ANYTOWN         "$729,950 "             DE      1582    3       
2       

To look like this:
123 MAIN STREET|ANYTOWN|$729950|DE|1582|3|2

I have no trouble getting it to convert the tabs to | with 

$export = preg_replace( '/\t/', '|',  $export);

But I can't seem to get the double quotes (") out of the price field

I use this:  
$export = preg_replace( '/"$/', '$',  $export);
and wind up with this:
123 MAIN STREET|ANYTOWN|\"$729,950 \"|DE|1582|3|2

I can't seem to kill the \"

ANyone?





Community email addresses:
  Post message: [email protected]
  Subscribe:    [EMAIL PROTECTED]
  Unsubscribe:  [EMAIL PROTECTED]
  List owner:   [EMAIL PROTECTED]

Shortcut URL to this page:
  http://groups.yahoo.com/group/php-list 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php-list/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to