Re: FW: [Phplib-users] OOHForms and RegEx
Brought to you by:
nhruby,
richardarcher
From: Andrew H. <ah...@ni...> - 2002-10-14 14:54:37
|
its possible. php uses the regex libs from the host machine and sometimes quirky differences from host to host surface. usually ive only seen quirks in the case of malformed regex's like your [a-Z]. even if you had put them in the proper order [A-z] you would still be including some characters between Z and a that im sure were unintended (like the '\'). i couldnt even say why it would work at all in any environment. hm, i just tested the egrep ranges from the command line of a linux box and a solaris box. the linux one seems to 'know what i mean.' the solaris one throws an error on [a-Z] but includes the intervening characters on [A-z] so there is indeed a compliance issue here. a.g.h Andres Barreto Zicare wrote: >Thanks Andrew... You are right. It works now... But I still have a couple of >questions. > >why do the original regexs ( example: "^[a-Z]*$" ) work as I expected in >the intranet server but fail in the internet host? it seems like regex has a >different behavior in the intranet server setup and in the internet host >setup... >is it any special recommendation or paper on regex use in OOHforms? > >Thanks again >Andres > >-----Original Message----- >From: Andrew Hull [mailto:ah...@ni...] >Sent: Viernes, 11 de Octubre de 2002 10:45 a.m. >To: Andres Barreto Zicare >Subject: Re: [Phplib-users] OOHForms and RegEx > > >Andres Barreto Zicare wrote: > >- snip - > > > >>But if I change >> "valid_regex"=>"^[a-z]*$" >>for >> "valid_regex"=>"^[a-Z]*$" >> >> >> >> >this _is_ invalid since lowercase comes after uppercase. in any event, i >think u mean [a-zA-Z] > >- snip - > >a.g.h > > > > > > >------------------------------------------------------- >This sf.net email is sponsored by:ThinkGeek >Welcome to geek heaven. >http://thinkgeek.com/sf >_______________________________________________ >Phplib-users mailing list >Php...@li... >https://lists.sourceforge.net/lists/listinfo/phplib-users > > > -- andrew.g.hull | software engineer Nine Dots 416.977.6660 ext. 231 ah...@ni... |