I came across a regular expression -(?!^ +$)^.+$ , want to understand what it does.
Asked
Active
Viewed 24 times
-4
-
2Also relevant: [Reference - What does this regex mean?](https://stackoverflow.com/q/22937618) – VLAZ May 13 '22 at 12:14
-
It is not about `!` but `?!`: https://stackoverflow.com/questions/12210807/what-does-mean/12210820#12210820 – Markus Weninger May 13 '22 at 12:29