Rewrite this in python ?

or using new gdal features 

jachym

Hamish píše v So 08. 03. 2008 v 20:27 -0800:
> Hi,
> 
> re. r.in.wms XML paring code for layers with spaces in the name
> 
> given some text like this:
> 
> DATA="<Name>Foo Bar Baz</Name>"
> echo "$DATA" | sed -e "s/<Name>\s*\(\w*\)/~\1~/g" -e "s/<\/Name>//g"
> 
> you get
>  ~Foo~ Bar Baz
> 
> instead of
>  ~Foo Bar Baz~
> 
> how to fix that regex?
> 
> 
> thanks,
> Hamish
> 
> 
> 
>       
> ____________________________________________________________________________________
> Be a better friend, newshound, and 
> know-it-all with Yahoo! Mobile.  Try it now.  
> http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 
> 
> 
> _______________________________________________
> grass-dev mailing list
> [email protected]
> http://lists.osgeo.org/mailman/listinfo/grass-dev
-- 
Jachym Cepicky
e-mail: jachym.cepicky gmail com
URL: http://les-ejk.cz
GPG: http://www.les-ejk.cz/pgp/jachym_cepicky-gpg.pub

Attachment: signature.asc
Description: Toto je digitálně podepsaná část zprávy

_______________________________________________
grass-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-dev

Reply via email to