3 ms·
It really depends on what you're doing, and at least being aware of what regex can do will help with deciding which is better for a given situation. For exampl
by Izkata 7y ago
It really depends on what you're doing, and at least being aware of what regex can do will help with deciding which is better for a given situation.
For example, I remember once replacing a buggy 3-4 lines of python based on split/etc with a single regex: match all \d+ (it was for extracting IDs from a user-input string)