Sample Header Ad - 728x90

python regex equivalent of kwrite [ ]+ and [0-9]+

0 votes
1 answer
644 views
I've never been good at regular expressions. When ever I read about them, I sort of get a headache, get up from my desk, and forget what I'm doing. Attention difficulties. But when I finally started making use of them in kwrite, I got a lot more comfortable with them. To the extent that, I can not now live without them. Now, I need to sort of translate my knowledge of kwrite to python. The kwrite regex [ ]+ matches a single space, two spaces, and a quadzillion spaces. How do I match spaces like that in a python regular expression? Also, the kwrite regex [0-9]+ matches 0, 10, 123, and 103984875749409202. How do I match those in a python regular expression?
Asked by ixtmixilix (13520 rep)
Jan 28, 2012, 02:12 PM
Last activity: Jan 28, 2012, 02:28 PM