Connecting Tech Pros Worldwide Help | Site Map

extract data from raw text

 
LinkBack Thread Tools Search this Thread
  #1  
Old March 25th, 2008, 05: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, 05: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, 05: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 Search this Thread
Search this Thread:

Advanced Search

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 On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

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 220,989 network members.