Excuse me jumping in here, but it looks like Edward is actually trying for 
regex that matches the letter A followed by one or more numbers. ^[A|D]* will 
match any string that contains only A and D characters.

I think the regex that Edward is after would be something like ^A[0-9]+$

Note that "\d" is just a shorthand way of writing "[0-9]" and not all regex 
interpreters use it.

-Miles

Ricardo Bayley wrote:
> Hi,
>
> I believe the correct expression would be:  ^[A|D]*
>
>
> Here is a site where you can test your regular expressions. It has
> been really handy for me.
>
> http://myregexp.com/
>
>
> Hope it helps !
>
>
> Ricardo
>
> 2011/2/3 Edward Mac Gillavry <[email protected]>
>
>
>       Bart,
>
>       Thanks for pointing me into the right direction! Got the regex
> A\D* working to pick up any road names that start with an "A"
>
>       For some reason though,  the expression A\d* doesn't seem to pick up
> any road numbers, e.g. "A2" or "A59"...
>
>       <ogc:PropertyIsEqualTo>
>         <ogc:Function name="strMatches">
>
>           <ogc:PropertyName>openbareruimtenaam</ogc:PropertyName>
>           <ogc:Literal>A\d*</ogc:Literal>
>
>         </ogc:Function>
>         <ogc:Literal>true</ogc:Literal>
>       </ogc:PropertyIsEqualTo>
>
>       Any thoughts?
>
>       Edward



___________________________________________________________________________

    Australian Antarctic Division - Commonwealth of Australia
IMPORTANT: This transmission is intended for the addressee only. If you are not 
the
intended recipient, you are notified that use or dissemination of this 
communication is
strictly prohibited by Commonwealth law. If you have received this transmission 
in error,
please notify the sender immediately by e-mail or by telephoning +61 3 6232 
3209 and
DELETE the message.
        Visit our web site at http://www.antarctica.gov.au/
___________________________________________________________________________
------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to