This question already has an answer here:
这个问题在这里已有答案:
- Is there a not (!) operator in regexp? 6 answers
regexp中是否有(!)运算符? 6个答案
I want to exclude '<' from the dot (.) (which includes all printable character) character class in java regex. How can I do it?
我想从java正则表达式中的点(。)(包括所有可打印字符)字符类中排除'<'。我该怎么做?
1 个解决方案
#1
0
You can do regex with except < character:
您可以使用除
[^<]+
#1
0
You can do regex with except < character:
您可以使用除
[^<]+