Help on a find Next Statement

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Sundown
    New Member
    • Apr 2006
    • 2

    #1

    Help on a find Next Statement

    I am making a program that needs to grab a string input ie:

    "green * 10 + white *10 + Blue *10 + Yellow *10 + Red * 20"

    I am looking to parse only the numbers and colors out of the string. I searched the forum and I found this example:

    colors=['green','white' ,'blue','yellow ','red']
    R=re.compile [colors]

    However, this is not working correctly! Any help would be much appreiciated.
    Last edited by Sundown; May 8 '06, 11:50 PM.
Working...