Hi all,

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!

Regards,

Edward


> Date: Tue, 8 Feb 2011 08:45:29 +0100
> Subject: Re: [Geoserver-users] How to filter road numbers in SLD using 
> [SEC=Unclassified] propertyislike? [SEC=Unclassified]
> From: [email protected]
> To: [email protected]
> CC: [email protected]; [email protected]; 
> [email protected]
> 
> On Tue, Feb 8, 2011 at 2:28 AM, Miles Jordan <[email protected]> wrote:
> > 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.
> 
> In theory it should work because we're using java own regexps:
> http://download.oracle.com/javase/1.4.2/docs/api/java/util/regex/Pattern.html
> 
> There may be something odd going on during the xml parsing... I just
> never had a chance
> to investigate
> 
> Cheers
> Andrea
> 
> -- 
> -------------------------------------------------------
> Ing. Andrea Aime
> GeoSolutions S.A.S.
> Tech lead
> 
> Via Poggio alle Viti 1187
> 55054  Massarosa (LU)
> Italy
> 
> phone: +39 0584 962313
> fax:      +39 0584 962313
> mob:    +39 333 8128928
> 
> http://www.geo-solutions.it
> http://geo-solutions.blogspot.com/
> http://www.youtube.com/user/GeoSolutionsIT
> http://www.linkedin.com/in/andreaaime
> http://twitter.com/geowolf
> 
> -------------------------------------------------------
                                          
------------------------------------------------------------------------------
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