To make things even more fun, regex differs in subtly different ways, the regex that works in perl might not work in sed. There are two main dialects, BRE and ERE, and lots of tool specific additions. So I find myself wondering if grep is using extended regular expressions, or is that in egrep, or is egrep the standard grep nowadays? One time I saw Russ Cox use Acme, and I saw the real power of regex when used by someone intuitively. But I am no Russ Cox.
I’d learn regex, but it looks like the kind of tool that programmers would shove into every single search function hole and expect everyone to know it even though it makes no sense for it to be there.
You can do surprisingly mich with just regex, but often enough there are better tools for a certain task. However if you want to do anything with bash, you will See Quite a lot of regex.
I’d learn regex, but it looks like what non-programmers think code looks like.
To make things even more fun, regex differs in subtly different ways, the regex that works in perl might not work in sed. There are two main dialects, BRE and ERE, and lots of tool specific additions. So I find myself wondering if grep is using extended regular expressions, or is that in egrep, or is egrep the standard grep nowadays? One time I saw Russ Cox use Acme, and I saw the real power of regex when used by someone intuitively. But I am no Russ Cox.
And then you might have to escape every escape character because it needs to go into a string first, making everything even more complex.
I’m quite a fan of Regex Crossword (for both learning and practicing). As the name implies, crosswords but with regex! Quite fun, at least for me.
Oh hey, that’s neat!
Yep that’s also how I learned it, agree that it’s fun!
I’d learn regex, but it looks like the kind of tool that programmers would shove into every single search function hole and expect everyone to know it even though it makes no sense for it to be there.
You can do surprisingly mich with just regex, but often enough there are better tools for a certain task. However if you want to do anything with bash, you will See Quite a lot of regex.