Laszlo Zsolt Nagy wrote:
I would like to match strings not beginning with '/webalizer'. How can I
do this?
Are you sure you need a regular expression? The str.startswith method
is what I would normally use to solve this kind of problem:
py> lst = ['aax', 'abx', 'acx', 'aay', 'aby', 'acy']
py> [
Laszlo Zsolt Nagy wrote:
Hi All!
I would like to match strings not beginning with '/webalizer'. How can I
do this?
The only one negation command is ^ inside [] but it cannot be used here.
I looked
over "re" examples on the net but I could not find an example about how
to match
"not beginning wit
Hi All!
I would like to match strings not beginning with '/webalizer'. How can I
do this?
The only one negation command is ^ inside [] but it cannot be used here.
I looked
over "re" examples on the net but I could not find an example about how
to match
"not beginning with" type expressions.
Tha