Thanks Miles for pushing me on! Unfortunately, I had given that one a try 
already...

So, my observations now:
- ^A\d+ does NOT work to pick out road number like A2, A35, A235 etc : NOT OK
- ^A[0-9]+ does NOT work to pick out road numbers like A2 A35, A235: NOT OK
- ^A\D+ DOES work to pick out any road name starting with an A and ignores the 
road numbers that start with an A: OK!
- ^A.+ DOES work to pick out both road names AND road numbers starting with an 
A: OK!

Hope this makes for a good test script one of you Java-programmers can use to 
debug this piece of the Geoserver code.

Cheers,

Edward


> From: [email protected]
> To: [email protected]
> CC: [email protected]
> Date: Wed, 9 Feb 2011 12:01:57 +1100
> Subject: RE: [Geoserver-users] How to filter road numbers in SLD using 
> [SEC=Unclassified] propertyislike? [SEC=Unclassified]
> 
> Edward Mac Gillavry wrote:
> > Pondered on Ricardo's suggestion last night, but Miles is right with
> > his comment on the regular expression. Neither "\d" nor "[0-9]" seem
> > to be picked up... Something with the XML-parsing then? Sorry to have
> > stumbled upon a bug in such a great piece of software!
> 
> Edward, maybe try using just ^A[0-9]+ i.e. without $. That will cater for if 
> you have any trailing white space.
> 
> Something to try...
> 
> -Miles
> 
> 
> ___________________________________________________________________________
> 
>     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