[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Character class with negated "]"
From: |
Hans Aberg |
Subject: |
Character class with negated "]" |
Date: |
Mon, 9 Sep 2002 13:43:37 +0200 |
How do I indicated a character class with a negated "]"?
I want to negate: * [ ]
The problems is then that attempts like
[^*[]]+
will not work, as the "]" will be interpreted as the character class
closing bracket. Therefore, I use things like
([^*[-^]|"\\"|"^")+
relying on ASCII ranges.
But I thought it ought to exist something simpler (and more readable).
Hans Aberg
- Character class with negated "]",
Hans Aberg <=