3 ms·
Is it because everyone tries to make it look short? edit: asking partly, because in my current work I occassionally have to convince non-technical users to use
by iugtmkbdfil834 2y ago
Is it because everyone tries to make it look short?
edit: asking partly, because in my current work I occassionally have to convince non-technical users to use one type of entry over other. For that reason, easy to read, simple regex wins over fancy, but convoluted regex.
- vitus 2y ago> For that reason, easy to read, simple regex wins over fancy, but convoluted regex. Sure, I'd take \d+\.\d+\.\d+\.\d+ over... "((2(5[0-5]|[0-4][0-9])|1[0-9]{2}|[1-9]?[0-9])\.){3}(2(5[0-5]|[0-4][0-9])|1[0-9]{2}|[1-9]?[0-9])", assuming that I then validate the results afterwards.