Re: Regular Expression Help

From: Date: Mon, 05 Mar 2001 19:39:37 +0000
Subject: Re: Regular Expression Help
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-42654@lists.php.net to get a copy of this message
> I want to delete everything after a tab (or space) on each line of > a text file and can't figure it out. > > An example line is > ARIA 5.19 -0.0625 -1.19 5.25 4.5 48.5 100300 > you can explode on a tab $arrlines = explode("\t", $the_line); then save $arrlines[0] from every line. Don't know if it's the most optimal way but it works :) -- Henrik Hansen

« previous php.general (#42654) next »