How can I match all \p{L}
but not \p{Alpha}
in a regular expression?
Is it possible to implement a logical AND
in Java's Regexp? If the answer is yes, how can that be achieved?
相关问题
- Delete Messages from a Topic in Apache Kafka
- Jackson Deserialization not calling deserialize on
- How to maintain order of key-value in DataFrame sa
- StackExchange API - Deserialize Date in JSON Respo
- Difference between Types.INTEGER and Types.NULL in
It is possible, but it is Java specific:
(quote as appropriate in a Java string etc)
Yes, by using a negated character class:
[^\P{L}]
matches the same as\p{L}
, but the negated character class makes it possible to subtract characters/properties from that set of characters.