From: Honza M. <hon...@ec...> - 2003-01-17 08:28:13
|
The regular expression for not empty field is '.+', so {switch({text...........8}).+:{text...........8}:none}=20 should work. Honza On =C8t, 2003-01-16 at 23:32, Norbert Brazda wrote: > I am not sure if my regexp is wrong (I am not very familiar with it) or= is there an bug in regular expression implementation in the switch{} com= mand.=20 >=20 >=20 > I have this command in my view definition (test whether the field is em= pty or not): >=20 > {switch({text...........8})[a-zA-Z0-9]:{text...........8}:none}=20 >=20 > It work well until the text...........8 contains parenthesis "(" or ")"= . The switch will display "none" even if the filed is not empty (e.g. it = contains string "Pastunovia (44 %), Tadzikovia (25 %), Hazarovia (10 %), = Uzbeci (8 %)". >=20 >=20 >=20 >=20 >=20 > Norbert Brazda > br...@ch... > tel: 0905-729359 >=20 > ChangeNet - informacny servis o obcianskej spolocnosti > Mlynske nivy 41, 821 09 Bratislava, Slovakia > tel/fax: 02-55560026, eMail: in...@ch... > http://www.changenet.sk >=20 > SPAJAME LUDI, KTORI MENIA SVET >=20 >=20 >=20 >=20 > ------------------------------------------------------- > This SF.NET email is sponsored by: Thawte.com > Understand how to protect your customers personal information by implem= enting > SSL on your Apache Web Server. Click here to get our FREE Thawte Apache= =20 > Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en > _______________________________________________ > Apc-aa-coders mailing list > Apc...@li... > https://lists.sourceforge.net/lists/listinfo/apc-aa-coders >=20 |