Itemquery and RegEx {Scanned}

Siki Zoltan siki at AGT.BME.HU
Thu Sep 9 07:38:19 PDT 2004


Hi,

Try
 qstring=/\[Ww\]ashington/
it will find if washington is part of the attribute, if you want
exact match try
 qstring=/^\[Ww]ashington$/

Bye
Zoltán

On Thu, 9 Sep 2004, Daniele Margotti wrote:

> Hi list,
> when I use "mode=itemnquery" (or "mode=itemquery") and I put a regular
> expression as search string (for example, "qstring=(W|w)ashington") I get
> this error:
>
> msQueryByAttributes(): Search returned no results. No matching record(s)
> found.
> msyyparse(): Expression parser error. parse error
> msyyparse(): Expression parser error. parse error
> msyyparse(): Expression parser error. parse error
> msyyparse(): Expression parser error. parse error
> msyyparse(): Expression parser error. parse error
> ...
> ...
>
> A "normal" search string (e.g., "qstring=Washington") works well: record
> is found, and query result is shown.
>
> I use MapServer as CGI.
>
> This is 'mapserv -v' output:
>
> MapServer version 4.0.1 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF
> SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT
> SUPPORTS=WFS_CLIENT INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=OGR INPUT=GDAL
> INPUT=SHAPEFILE
>
> What's wrong?
>
>  Daniele
>
>
> P.S.: why can't I send messages through my e-mail client? I have to use
> the web interface...
>



More information about the MapServer-users mailing list