3 ms·
My first jobs were heavily focused on parsing data from HTML and regex was (and still is) the most common solution for the majority of cases To learn it, I pla
by Minor49er 2y ago
My first jobs were heavily focused on parsing data from HTML and regex was (and still is) the most common solution for the majority of cases
To learn it, I played a lot of regex golf [1]
I also enabled regular expressions in my code editor's Find feature so every search I'd make used regex. Having it enabled in my editor made learning it more immersive and useful, especially when combined with things like find-and-replace. I highly recommend permanently enabling that in your editor as well
Also, challenge your coworkers to see who can make the shortest patterns for a variety of cases and see whose is the most versatile. It's always a fun time
[1] https://alf.nu/RegexGolf https://alf.nu/RegexGolf