Re: [PHP] Still having ereg migranes

2002-11-21 Thread Marek Kilimajer
I think you should really ask at a unix list Mako Shark wrote: Heheh. Maybe I wasn't clear, or maybe I'm missing something. Well, one way without regex would be to explode() numbers on a comma and use in_array() to see if you're value exists. That should look for your number, preceded by eit

RE: [PHP] Still having ereg migranes

2002-11-20 Thread Mako Shark
<> Not sure I get this but, again, I can't use $_REQUEST or explode or in_array at this point. The entire process needs to happen in the shell_exec() command, because I'd much rather have that handle the whole shebang than PHP. __ Do you Yahoo!? Yah

RE: [PHP] Still having ereg migranes

2002-11-20 Thread Mako Shark
Heheh. Maybe I wasn't clear, or maybe I'm missing something. > Well, one way without regex would be to explode() > numbers on a comma and use in_array() to see if > you're value exists. > That should look for your number, preceded by either > the beginning of the string or a comma and followed >

RE: [PHP] Still having ereg migranes

2002-11-20 Thread John W. Holmes
> Sorry to repost this, but I haven't found a solution > and it's still nagging me. Maybe some of you can come > up with something I can't. Here was my original post: > > I've made myself an tag that > contains in the value attribute a list of > comma-delimited numbers. I need to find if a certai

Re: [PHP] Still having ereg migranes

2002-11-20 Thread Marek Kilimajer
first way: if(ereg('([^0-9]|^)'.$your_number.'([^0-9]|$)',$_REQUEST['numbers']) ) second way: $numbers=explode(',',$_REQUEST['numbers']); if(in_array($your_number,$numbers)) Mako Shark wrote: Sorry to repost this, but I haven't found a solution and it's still nagging me. Maybe some of you can co

[PHP] Still having ereg migranes

2002-11-20 Thread Mako Shark
Sorry to repost this, but I haven't found a solution and it's still nagging me. Maybe some of you can come up with something I can't. Here was my original post: I've made myself an tag that contains in the value attribute a list of comma-delimited numbers. I need to find if a certain number is in