[std.regex] Set operations with unicode properties.

Tobias Pankrath tobias at pankrath.net
Mon Oct 30 09:43:16 UTC 2017


Greetings,

I need to match any character, except control characters and some 
other exceptions and thought this would be a good usecase to use 
character classes and set operations.

Can I combine this with unicode properties?, e.g: any Charactor 
that is not a control character and not ';' or ':'?
---
string regex = "[\p{Any}--\p{Control}--[;:]]";
---

Is this possible somehow?

Thanks,
- Tobias


More information about the Digitalmars-d-learn mailing list