Re: [PHP] Need help with ereg regular expression

2005-02-03 Thread Jochem Maas
John Nichel wrote: Argghhhreturn receipts indeed - I believe there was an informal decision that everyone should actually return the requested reciept - the idea being that 1000+ reciepts will probably make said person change their ways. I notice that KHS (the OP) didn't

Re: [PHP] Need help with ereg regular expression

2005-02-03 Thread Jochem Maas
Mikey wrote: Argghhhreturn receipts I just mailed the guy and gave him a friendly nod - they are off now :-) damn ;-) I was hoping a barrage of RRs would be what made him turn them off. oh well on to the next victim ;-) Mikey -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] Need help with ereg regular expression

2005-02-03 Thread Jochem Maas
Jason Wong wrote: On Thursday 03 February 2005 02:18, John Nichel wrote: Argghhhreturn receipts Use a *real* mail client -- one that ignores those stupid things. Jason, I use Thunderbird - AFAICT its pretty real, BUT I have to have allow return reciepts because of other

Re: [PHP] Need help with ereg regular expression

2005-02-03 Thread Jason Wong
On Thursday 03 February 2005 18:08, Jochem Maas wrote: Jason, I use Thunderbird - AFAICT its pretty real, BUT I have to have allow return reciepts because of other things/work I do - turning them off is not an option for me I can understand it if it's to enable scheduling features. However if

Re: [PHP] Need help with ereg regular expression

2005-02-03 Thread Jochem Maas
Jason Wong wrote: On Thursday 03 February 2005 18:08, Jochem Maas wrote: Jason, I use Thunderbird - AFAICT its pretty real, BUT I have to have allow return reciepts because of other things/work I do - turning them off is not an option for me I can understand it if it's to enable scheduling

Re: [PHP] Need help with ereg regular expression

2005-02-03 Thread John Nichel
Jason Wong wrote: On Thursday 03 February 2005 02:18, John Nichel wrote: Argghhhreturn receipts Use a *real* mail client -- one that ignores those stupid things. I'm using Thunderbird on a RHEL AS 3 box. About as real as it gets. Unfortunately, here at work, I need to have

Re: [PHP] Need help with ereg regular expression

2005-02-02 Thread John Nichel
Argghhhreturn receipts -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Need help with ereg regular expression

2005-02-02 Thread Mikey
Argghhhreturn receipts I just mailed the guy and gave him a friendly nod - they are off now :-) Mikey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Need help with ereg regular expression

2005-02-02 Thread Richard Lynch
KHS wrote: Here is an example of the input: #include FT_FREETYPE_H #include stdio.h #include freetype/freetype.h Here is a snip of my code: $line = fgets($fp); $line = trim($line); $regexp = '^#include(:? | | )([^ ]+)[ ]'; //$regexp = '^#include( | | )[^ ]+[ ]'; //Same result as above

Re: [PHP] Need help with ereg regular expression

2005-02-02 Thread KHS
Richard Lynch wrote: KHS wrote: Here is an example of the input: #include FT_FREETYPE_H #include stdio.h #include freetype/freetype.h Here is a snip of my code: $line = fgets($fp); $line = trim($line); $regexp = '^#include(:? | | )([^ ]+)[ ]'; //$regexp = '^#include( | | )[^ ]+[ ]'; //Same

Re: [PHP] Need help with ereg regular expression

2005-02-02 Thread Richard Lynch
KHS wrote: Richard Lynch wrote: KHS wrote: Here is an example of the input: #include FT_FREETYPE_H #include stdio.h #include freetype/freetype.h Perhaps: ?php $text = trim(str_replace(#include, , $text)); preg_match('[]?(.*)[]?', $text, $answer); echo $answer[1]; ? -- Like Music?

Re: [PHP] Need help with ereg regular expression

2005-02-02 Thread Jason Wong
On Thursday 03 February 2005 02:18, John Nichel wrote: Argghhhreturn receipts Use a *real* mail client -- one that ignores those stupid things. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet

Re: [PHP] Need help with ereg regular expression

2005-02-02 Thread Jason Wong
On Thursday 03 February 2005 03:44, KHS wrote: On the other hand, I think you could safely do: $regex = ^#include(.*)$; and get what you want by using trim on the captured expression. no this would leave me with , , and marks. Then string replace those characters. Or am I missing

Re: [PHP] Need help with a regular expression

2004-09-30 Thread Jason Wong
On Friday 01 October 2004 05:22, Alex Hogan wrote: if($key == ereg(^Q4_.[0-9]$, $key)){ ^Q4_[0-9]$ -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development *

Re: [PHP] Need help with a regular expression

2004-09-30 Thread Ryan Dingman
On Sep 30, 2004, at 2:22 PM, Alex Hogan wrote: Is my ereg() wrong? My understanding is ereg(^Q4_.[0-9]$, $key) should look for a $key starting with 'Q4_' followed by a single number and place those values into an array named $Q4scores. Yes, your understanding of ^Q4_.[0-9]$ is wrong. This says

Re: [PHP] Need help with a regular expression

2004-09-30 Thread Alex Hogan
[snip] ^Q4_[0-9]$ Yes, your understanding of ^Q4_.[0-9]$ is wrong. [/snip] Thanks guys.., I did take the '.' out of the expression, but I also had to change the way I was using it. I replaced; if($key == ereg( ^Q4_.[0-9]$, $key)){ with if(ereg( ^Q4_.[0-9]$, $key)){ alex hogan -- PHP General