Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old March 25th, 2008, 06:15 PM
someusernamehere
Guest
 
Posts: n/a
Default extract data from raw text

Hey, I need to create an application wich extract data from a .csv
text (delimited by commas), the problem is that I only need some
relevant data, its posssible extract what I want (may be with regular
expressions, by matching some words, thought) with PHP?, can anyone
give me an example/approach?

many thanks.
  #2  
Old March 25th, 2008, 06:35 PM
ZeldorBlat
Guest
 
Posts: n/a
Default Re: extract data from raw text

On Mar 25, 1:14 pm, someusernamehere <someusernameh...@gmail.com>
wrote:
Quote:
Hey, I need to create an application wich extract data from a .csv
text (delimited by commas), the problem is that I only need some
relevant data, its posssible extract what I want (may be with regular
expressions, by matching some words, thought) with PHP?, can anyone
give me an example/approach?
>
many thanks.
<http://www.php.net/fgetcsv>
<http://www.php.net/str_getcsv>

Those will turn a line from a csv file into an array. From there you
can just use the values you need.
  #3  
Old March 25th, 2008, 06:45 PM
Jerry Stuckle
Guest
 
Posts: n/a
Default Re: extract data from raw text

someusernamehere wrote:
Quote:
Hey, I need to create an application wich extract data from a .csv
text (delimited by commas), the problem is that I only need some
relevant data, its posssible extract what I want (may be with regular
expressions, by matching some words, thought) with PHP?, can anyone
give me an example/approach?
>
many thanks.
>
Maybe the easiest would be to just use fgetcsv() and throw away what you
don't want.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles