[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

regulære udtryk i python



Hejsa

Jeg er bestemt ikke nogen haj til regulære udtryk, men det er dog lykkedes mig at få rimelige resultater i bash. Men python...

Jeg sidder med en streng, fx

en lille 'lille bitte  micro' test 'af re'

og vil gerne have en eller flere spaces indenfor 'er lavet til underscore, samt 'er fjernet altså:

en lille lille_bitte_micro test af_re

Er der en som kan hjælpe, gerne med tilhørende forklaring eller reference til info så jeg faktisk fatter hvad der sker?

--
peace, love & harmony
Atte

http://www.atte.dk
http://www.atte.dk/gps


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2006-05-01, 02:01 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *