Look this
>>> import re
>>> text="asdfnbd]"
>>> m=re.sub("n*?","?",text)
>>> print m
?a?s?d?f?n?b?d?]?
I don't understand the 'non-greedy' pattern.
I think the repl argument should replaces every char in text and outputs
"".
--
https://mail.python.org/mailman/listinfo/python-list
https://docs.python.org/2/library/pipes.html
--
https://mail.python.org/mailman/listinfo/python-list
Please give me a simple example.Thanks!
--
https://mail.python.org/mailman/listinfo/python-list
Template.append(cmd, kind) and Template.prepend(cmd, kind)
Append a new action at the end.The cmd variable must be a valid bourne shell
command. The kind variable consists of two letters.
My os is windows 7.But this module is used for POSIX.
So,I don't know the doucement said what's difference o
I get it.Thanks!
--
https://mail.python.org/mailman/listinfo/python-list