Re: How to validate a name

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Obrigado - Thanks

Jony dos Santos Kostetzer escreveu:

> Hi!
>
> You can use:
>
> if (preg_match('/[a-z0-9]/i', $variable)) {
>       //OK
> } else {
>       //problem
> }
>
> []'s
>
> ======================================
> Jony dos Santos Kostetzer
>
> Pesquisa & Desenvolvimento /  Research & Development
> A2C Internet para Negócios  / A2C Internet to Business
> www.a2c.com.br
> ======================================
>
>
> Em Qua 08 Fev 2006 09:47, Francisco - São Paulo - Brazil escreveu:
> >  Sorry for asking for something so basic, but I am really bad in regexp.
> >
> >  I would like to validate a text typed , it must have:
> >  A-Z
> >  a-z
> >  0-9
> >  _-
> >
> >  Example: Frank_23z
> >
> >  Thanks in advance
> >
> >
> >  PHP Data object relational mapping generator
> >  http://www.metastorage.net/
> >
> >
> >
> >
> > SPONSORED LINKS
> >
> > Programming languages
> > Object oriented programming
> > Php developer
> >
> >
> > Computer security
> > C programming language
> > Computer programming languages
> >
> >
> >
> >  YAHOO! GROUPS LINKS
> >
> >
> >  Visit your group "php-objects" on the web.
> >  
> >  To unsubscribe from this group, send an email to:
> >  php-objects-unsubscribe@xxxxxxxxxxxxxxx
> >  
> >  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
>
> -- 
> ======================================
> Jony dos Santos Kostetzer - jony@xxxxxxxxxx
>
> Pesquisa & Desenvolvimento
> A2C Internet para Negócios - www.a2c.com.br
> ======================================
> "A arte do conhecimento está na consciência humana. Só é digno de seu 
> poder
> aquele que o justifica dia após dia."
>
>
> PHP Data object relational mapping generator
> http://www.metastorage.net/
>
>
>
> SPONSORED LINKS
> Programming languages 
> <http://groups.yahoo.com/gads?t=ms&k=Programming+languages&w1=Programming+languages&w2=Object+oriented+programming&w3=Php+developer&w4=Computer+security&w5=C+programming+language&w6=Computer+programming+languages&c=6&s=166&.sig=G1dRwt6nKXtyPknUfy275g> 
> 	Object oriented programming 
> <http://groups.yahoo.com/gads?t=ms&k=Object+oriented+programming&w1=Programming+languages&w2=Object+oriented+programming&w3=Php+developer&w4=Computer+security&w5=C+programming+language&w6=Computer+programming+languages&c=6&s=166&.sig=XeLX8g9-vhY5M4PC91rmcQ> 
> 	Php developer 
> <http://groups.yahoo.com/gads?t=ms&k=Php+developer&w1=Programming+languages&w2=Object+oriented+programming&w3=Php+developer&w4=Computer+security&w5=C+programming+language&w6=Computer+programming+languages&c=6&s=166&.sig=A2ORZ5BIiy8lh-4FyY08rA> 
>
> Computer security 
> <http://groups.yahoo.com/gads?t=ms&k=Computer+security&w1=Programming+languages&w2=Object+oriented+programming&w3=Php+developer&w4=Computer+security&w5=C+programming+language&w6=Computer+programming+languages&c=6&s=166&.sig=elAvlMof6Z9NTtbHMAYCCw> 
> 	C programming language 
> <http://groups.yahoo.com/gads?t=ms&k=C+programming+language&w1=Programming+languages&w2=Object+oriented+programming&w3=Php+developer&w4=Computer+security&w5=C+programming+language&w6=Computer+programming+languages&c=6&s=166&.sig=szsWmVMeM1JQP_Q45BnADw> 
> 	Computer programming languages 
> <http://groups.yahoo.com/gads?t=ms&k=Computer+programming+languages&w1=Programming+languages&w2=Object+oriented+programming&w3=Php+developer&w4=Computer+security&w5=C+programming+language&w6=Computer+programming+languages&c=6&s=166&.sig=JgOeFzoTc0Uh5HsYRvwtKg> 
>
>
>
> ------------------------------------------------------------------------
> YAHOO! GROUPS LINKS
>
>     *  Visit your group "php-objects
>       <http://groups.yahoo.com/group/php-objects>" on the web.
>        
>     *  To unsubscribe from this group, send an email to:
>        php-objects-unsubscribe@xxxxxxxxxxxxxxx
>       <mailto:php-objects-unsubscribe@xxxxxxxxxxxxxxx?subject=Unsubscribe>
>        
>     *  Your use of Yahoo! Groups is subject to the Yahoo! Terms of
>       Service <http://docs.yahoo.com/info/terms/>.
>
>
> ------------------------------------------------------------------------
>
>------------------------------------------------------------------------
>
>Internal Virus Database is out-of-date.
>Checked by AVG Free Edition.
>Version: 7.1.371 / Virus Database: 267.13.13/197 - Release Date: 09/12/2005
>
>  
>

-- 
/*----------------------------*/
    When you have a hammer 
 Everything looks like a nail.
/*----------------------------*/



PHP Data object relational mapping generator
http://www.metastorage.net/ 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php-objects/

<*> To unsubscribe from this group, send an email to:
    php-objects-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 




[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux