471,091 Members | 1,639 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,091 software developers and data experts.

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:

R=re.compile [colors]

However, this is not working correctly! Any help would be much appreiciated.
May 8 '06 #1
0 1279

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

45 posts views Thread by Joh | last post: by
6 posts views Thread by Mark Reed | last post: by
15 posts views Thread by Jay | last post: by
2 posts views Thread by rookiejavadude | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.