'How to match a non-empty string
For a Token of a lexer, I want it to match a non-empty string (the string cannot contain space or new line character). The closest solution I managed to get is (~["\r","\n"," "])+. But I also want it not to contain \r\n. Is there any way to add the extra condition to my current solution?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
