Is there a way to split a string into variables using multiple space as a separator? I am using following lines in my script but seems it is not working.
pathway_class, pathway_subclass = value.split(' ', 1)
pathway_class, pathway_subclass = value.split('\s+', 1)
The value column looks like this:
      map00010                    Pathway
      map00020                    Pathway
      map00030                    Pathway
      map00040                    Pathway
      map00051                    Pathway
I would like to only fetch the 'map' ids (map00010 and so on).
Any help is highly appreciated.
 
     
    