Re: FW: [Phplib-users] OOHForms and RegEx
Brought to you by:
nhruby,
richardarcher
From: Peter T. <pte...@te...> - 2002-10-14 15:10:43
|
Some more comments after reading your question more thorough: A possible reason for the difference in behaviour between your host and intranet server could be caused by the locale settings on different machines. For instance, accented characters are supposed to be in the [a-zA-Z] character class only when the running system has the right system locale settings. Tricky when porting your code to a different machine, because your carefully crafted regexp might be evaluated differently. Unfortunately I haven't figured out where to set these locales. Peter At 16:49 14-10-2002, 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 ---------- TERIS Information Services BV Peter Termaten Phone: +31 23 565 2682 Aagje Dekenstraat 43 Fax: +31 23 565 2676 2135 RJ Hoofddorp Mobile: +31 653 65 8686 www.teris.nl ---------- |