I now using in Regex
this expressions,
([\x20-\x7E]+)
- match everything with space
([\x21-\x7E]+)
- match everything without space
But i need more performance and in benchmark i see that (.*)
is 2x more faster than ([\x20-\x7E]+)
. Then i replaced that.
But how to write ([\x21-\x7E]+)
in (.*)
? Or in other words how to modify (.*)
to match everything without whitespace characters?
Thanks!
To match everything except whitespace use:
[^\s]+
or
\S+
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With