Re: [PHP] preg_match fails to resolve variable as a subject

2010-12-03 Thread Richard Quadling
On 3 December 2010 11:13, Da Rock wrote: > On 12/03/10 16:33, Tamara Temple wrote: >> >> On Dec 2, 2010, at 11:33 PM, Da Rock wrote: >> >>> On 11/29/10 09:10, Richard Quadling wrote: On 27 November 2010 04:45, Da Rock  wrote: > On 11/27/10 13:51, Tamara Temple wrote: >

Re: [PHP] preg_match fails to resolve variable as a subject

2010-12-03 Thread Richard Quadling
On 3 December 2010 11:13, Da Rock wrote: > On 12/03/10 16:33, Tamara Temple wrote: >> >> On Dec 2, 2010, at 11:33 PM, Da Rock wrote: >> >>> On 11/29/10 09:10, Richard Quadling wrote: On 27 November 2010 04:45, Da Rock  wrote: > On 11/27/10 13:51, Tamara Temple wrote: >

Re: [PHP] preg_match fails to resolve variable as a subject

2010-12-03 Thread Da Rock
On 12/03/10 16:33, Tamara Temple wrote: On Dec 2, 2010, at 11:33 PM, Da Rock wrote: On 11/29/10 09:10, Richard Quadling wrote: On 27 November 2010 04:45, Da Rock wrote: On 11/27/10 13:51, Tamara Temple wrote: On Nov 26, 2010, at 7:28 PM, Da Rock wrote: On 11/27/10 00:57, Richard Quad

Re: [PHP] preg_match fails to resolve variable as a subject

2010-12-02 Thread Tamara Temple
On Dec 2, 2010, at 11:33 PM, Da Rock wrote: On 11/29/10 09:10, Richard Quadling wrote: On 27 November 2010 04:45, Da Rockl...@herveybayaustralia.com.au> wrote: On 11/27/10 13:51, Tamara Temple wrote: On Nov 26, 2010, at 7:28 PM, Da Rock wrote: On 11/27/10 00:57, Richard Quadling wrote:

Re: [PHP] preg_match fails to resolve variable as a subject

2010-12-02 Thread Da Rock
On 11/29/10 09:10, Richard Quadling wrote: On 27 November 2010 04:45, Da Rock wrote: On 11/27/10 13:51, Tamara Temple wrote: On Nov 26, 2010, at 7:28 PM, Da Rock wrote: On 11/27/10 00:57, Richard Quadling wrote: On 26 November 2010 00:07, Da Rock wrote:

Re: [PHP] preg_match fails to resolve variable as a subject

2010-11-28 Thread Richard Quadling
On 27 November 2010 04:45, Da Rock wrote: > On 11/27/10 13:51, Tamara Temple wrote: >> >> On Nov 26, 2010, at 7:28 PM, Da Rock wrote: >> >>> On 11/27/10 00:57, Richard Quadling wrote: On 26 November 2010 00:07, Da Rock  wrote: > preg_match("/(\d{1,3})(\.)$/", exec($mixer .

Re: [PHP] preg_match fails to resolve variable as a subject

2010-11-26 Thread Da Rock
On 11/27/10 13:51, Tamara Temple wrote: On Nov 26, 2010, at 7:28 PM, Da Rock wrote: On 11/27/10 00:57, Richard Quadling wrote: On 26 November 2010 00:07, Da Rock wrote: preg_match("/(\d{1,3})(\.)$/", exec($mixer . ' ' . $command),&$matches) Can you ... var_dump(exec($mixer . ' ' . $co

Re: [PHP] preg_match fails to resolve variable as a subject

2010-11-26 Thread Tamara Temple
On Nov 26, 2010, at 7:28 PM, Da Rock wrote: On 11/27/10 00:57, Richard Quadling wrote: On 26 November 2010 00:07, Da Rockl...@herveybayaustralia.com.au> wrote: preg_match("/(\d{1,3})(\.)$/", exec($mixer . ' ' . $command),& $matches) Can you ... var_dump(exec($mixer . ' ' . $command));

Re: [PHP] preg_match fails to resolve variable as a subject

2010-11-26 Thread Da Rock
On 11/27/10 00:57, Richard Quadling wrote: On 26 November 2010 00:07, Da Rock wrote: preg_match("/(\d{1,3})(\.)$/", exec($mixer . ' ' . $command),&$matches) Can you ... var_dump(exec($mixer . ' ' . $command)); I wonder if the output includes a new line which you are not accounting

Re: [PHP] preg_match fails to resolve variable as a subject

2010-11-26 Thread Tamara Temple
On Nov 25, 2010, at 6:07 PM, Da Rock wrote: preg_match("/(\d{1,3})(\.)$/", exec($mixer . ' ' . $command), & $matches) it looks like you're failing to account for the newline that comes back in a command execution. Add trim() around the exec() call and try again. -- PHP General Mailing Li

Re: [PHP] preg_match fails to resolve variable as a subject

2010-11-26 Thread Richard Quadling
On 26 November 2010 00:07, Da Rock wrote: > preg_match("/(\d{1,3})(\.)$/", exec($mixer . ' ' . $command), &$matches) Can you ... var_dump(exec($mixer . ' ' . $command)); I wonder if the output includes a new line which you are not accounting for in the regex. -- Richard Quadling Twitter : EE

[PHP] preg_match fails to resolve variable as a subject

2010-11-25 Thread Da Rock
I have been scratching on this for some time now, and throughout I've been trying subscribe to this list. Pardon if this is a stupid question, but I googled for days on this and still couldn't get it to work. Is there a known issue with php's preg_match? I can get it to work on a string dire