.net
> Sent: Tuesday, March 4, 2008 3:09:09 PM
> Subject: Re: [PHP] regular expressions question
>
> On Tue, March 4, 2008 1:19 pm, Adil Drissi wrote:
>> Is there any way to limit the user to a set of characters for
>> example
>> say i want my user to enter any character b
k fields.
>
> Thank you
>
> - Original Message
> From: Richard Lynch <[EMAIL PROTECTED]>
> To: Adil Drissi <[EMAIL PROTECTED]>
> Cc: php-general@lists.php.net
> Sent: Tuesday, March 4, 2008 3:09:09 PM
> Subject: Re: [PHP] regular expressions question
&g
t;[EMAIL PROTECTED]>
To: Adil Drissi <[EMAIL PROTECTED]>
Cc: php-general@lists.php.net
Sent: Tuesday, March 4, 2008 3:09:09 PM
Subject: Re: [PHP] regular expressions question
On Tue, March 4, 2008 1:19 pm, Adil Drissi wrote:
> Is there any way to limit the user to a set of characters for exa
Thank you guys,
The answers you gave me not only solved the problem,
but i included more characters like space and -.
Thank you again
--- Richard Lynch <[EMAIL PROTECTED]> wrote:
> On Tue, March 4, 2008 1:19 pm, Adil Drissi wrote:
> > Is there any way to limit the user to a set of
> characters
On Tue, March 4, 2008 1:19 pm, Adil Drissi wrote:
> Is there any way to limit the user to a set of characters for example
> say i want my user to enter any character between a and z (case
> insensitive). And if the user enters just one letter not belonging to
> [a-z], this will not be accepted.
>
>
On Tue, Mar 4, 2008 at 2:19 PM, Adil Drissi <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Is there any way to limit the user to a set of characters for example say i
> want my user to enter any character between a and z (case insensitive). And
> if the user enters just one letter not belonging to [a-z],
On 3/4/08, Adil Drissi <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Is there any way to limit the user to a set of characters for example say i
> want my user to enter any character between a and z (case insensitive). And
> if the user enters just one letter not belonging to [a-z], this will not be
> ac
Hi,
Is there any way to limit the user to a set of characters for example say i
want my user to enter any character between a and z (case insensitive). And if
the user enters just one letter not belonging to [a-z], this will not be
accepted.
I tried eregi('[a-z]', $fname) but this allows the
Whoops.. I missed one bit. Rasmus did it right. ;)
On Wed, 30 Oct 2002 [EMAIL PROTECTED] wrote:
> If I understand you correctly, I think you want this?
>
> $matches = array();
> $test = "(this)example";
> preg_match("/\((.*)\)(.*)/", $test, $matches);
> array_shift($matches);
>
> On Wed, 30 Oc
If I understand you correctly, I think you want this?
$matches = array();
$test = "(this)example";
preg_match("/\((.*)\)(.*)/", $test, $matches);
array_shift($matches);
On Wed, 30 Oct 2002, Simon Dedeyne wrote:
> I have a little question. I'm having some difficulty with regular
> expressions:
>
$str = "(this)example";
preg_match("/\((.*?)\)(.*)/",$str,$regs);
$a[0] = $regs[1];
$a[1] = $regs[1].$regs[2];
On Wed, 30 Oct 2002, Simon Dedeyne wrote:
> I have a little question. I'm having some difficulty with regular
> expressions:
>
> here it is:
> (this)exam
I have a little question. I'm having some difficulty with regular
expressions:
here it is:
(this)example
should be output in an array
[0]=> this
[1]=> thisexample
I'm supposing this should be done with preg_grep, but I'm not really
familiar with some of it's syntax for the regular expression.
I
12 matches
Mail list logo