Re: [PHP] extracting text - regex

2009-04-10 Thread Ashley Sheridan
On Wed, 2009-04-08 at 17:14 +0200, Merlin Morgenstern wrote: > > George Larson wrote: > > On Wed, Apr 8, 2009 at 9:13 AM, George Larson > > wrote: > > > >> I'm what you might consider rather green, myself. > >> I certainly wouldn't use this code for production but if you're just > >> debugging o

Re: [PHP] extracting text - regex

2009-04-08 Thread Merlin Morgenstern
George Larson wrote: On Wed, Apr 8, 2009 at 9:13 AM, George Larson wrote: I'm what you might consider rather green, myself. I certainly wouldn't use this code for production but if you're just debugging or something then how about something like this: ") !== FALSE) { $echo_output = TRUE; }

Re: [PHP] extracting text - regex

2009-04-08 Thread George Larson
On Wed, Apr 8, 2009 at 9:13 AM, George Larson wrote: > I'm what you might consider rather green, myself. > I certainly wouldn't use this code for production but if you're just > debugging or something then how about something like this: > > $handle = @fopen('page.htm', 'r'); > if ($handle

Re: [PHP] extracting text - regex

2009-04-08 Thread George Larson
I'm what you might consider rather green, myself. I certainly wouldn't use this code for production but if you're just debugging or something then how about something like this: ") !== FALSE) { $echo_output = TRUE; } if (strpos($eos,"<\div>") !== FALSE) { $echo_output = FALSE; }

Re: [PHP] extracting text - regex

2009-04-08 Thread Per Jessen
Merlin Morgenstern wrote: > Hello, > > I am trying read text out of a text that is inbetween two divs. > Somehow this should be possible with regex, I just can't figure out > how. > > Example: > > > bla blub > > > I would like to extract the text "bla blub" out of this example. > This migh

Re: [PHP] Extracting text from PDF files

2007-10-10 Thread David Giragosian
On 10/9/07, Jay Blanchard <[EMAIL PROTECTED]> wrote: > > [snip] > I need to extract the text from a PDF file for > storage in the database. > [/snip] > > It depends. If the PDF is an image file you cannot do it with PHP. > > http://www.php.net/pdf read the second user note > > > [snip] > Madison, W

RE: [PHP] Extracting text from PDF files

2007-10-09 Thread Jay Blanchard
[snip] I need to extract the text from a PDF file for storage in the database. [/snip] It depends. If the PDF is an image file you cannot do it with PHP. http://www.php.net/pdf read the second user note [snip] Madison, WI 53703 [/snip] P.S. Do you know of the Madison Scouts? -- PHP General M

RE: [PHP] extracting text from text file to be used in PHP

2003-06-14 Thread Boaz Yahav
You can also use regular expressions. Here is an example : How to extract a string from a bigger string or from an HTML block with regex and PHP http://examples.weberdev.com/get_example.php3?count=3167 Sincerely berber Visit http://www.weberdev.com/ Today!!! To see where PHP might take you tomo

Re: [PHP] extracting text from text file to be used in PHP

2003-06-13 Thread Jeff Harris
On Jun 13, 2003, "Lance Q" claimed that: |Hello all, | |One of the sites I host is a radio station. Their computer has been setup to |automagically upload the current song and the next song to their web site |via FTP. Unfortunately, the format it comes in is pretty awful. (See below). | |The CURRE

RE: [PHP] extracting text

2002-12-24 Thread John W. Holmes
> say i have a line of text like: [blah], [rah] PH33r Us! [moo] > > how can I extract all the text in the brackets and set it as a var, im > totally stuck, my idea was to use strstr() but that wouldnt work as all > the > tags were not at the end :( Assuming you want to replace [foo] with the valu