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?