[mapserver-users] confused with regular expression
Michael Schulz
mschulz at webgis.de
Fri Jul 31 00:30:28 PDT 2009
Hi,
maybe try removing the last quotation mark after the regex. Also, I
think the spaces are taken into account in your regex, so you should
try remove them and see if it works. I think sth. like
EXPRESSION ('[lkod]' =~ /andezit|bazalt/ ) could work.
If the field "lkod" only contains the rock names and nothing else you
could try the logical expression form:
EXPRESSION ('[lkod]' == 'andezit' OR '[lkod]' == 'bazalt')
Cheers, Michael
2009/7/31 Ahmet Temiz <temiz at deprem.gov.tr>:
> hello
>
> I am confused with regular expression.
>
> EXPRESSION ('[lkod]' =~ /andezit | bazalt/' )
>
> I just want to choose "andezit | bazalt" containing records.
>
> But I got nothing.
>
> can you tell what the correct expression is ?
>
> regards
>
> --
> Open WebMail Project (http://openwebmail.org)
>
>
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Aufwind durch Wissen!
Qualifizierte Open Source Schulungen bei der
http://www.foss-akademie.de/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-----------------------------------------------------------
Michael Schulz
mschulz at webgis.de
in medias res
Gesellschaft für Informationstechnologie mbH
+++ Bitte beachten Sie unsere neue Adresse und Durchwahl +++
Schwimmbadstraße 2
D-79100 Freiburg i. Br.
Tel: +49 (0)761 705798-102
Tel: +49 (0)761 705798-0
Fax: +49 (0)761 705798-09
+++ Bitte beachten Sie unsere neue Adresse und Durchwahl +++
http://www.webgis.de / http://www.zopecms.de
--------------------------------------------------------------
Geschäftsführer: Stefan Giese, Dr. Christof Lindenbeck
Eingetragen im Handelsregister HRB 5930 beim Amtsgericht Freiburg
More information about the MapServer-users
mailing list