REGULAR EXPRESSION

Shawn Milochik Shawn at Milochik.com
Wed Sep 5 12:20:08 EDT 2007


> Hi.. Thanks alot for finding time to help a beginner like me. What I
> am trying to do is validate the input i get. I just want to take
> numbers and numbers only. So if the input is 23+1 or 2/3 or 9-0 or
> 7/0 , I want to find it using reg exp. I know there are other ways to
> do this... but i thought i will try this as i need to learn reg exp. I
> tried \D+   ,   \W+,  and \D+|\W+ .. Thanks once again...
>
>
> --


Send a couple of strings and the output you would like from each.



More information about the Python-list mailing list