Shawn Wagner wrote:
I'm mostly trying to fix one annoyance I've found - simple to use case-insensitive regular expressions. Having more powerful REs available as an option and parity with the flavors of RE accepted by its stepchild grep are just added bonuses. If you don't want to use this one, what about the earlier hackjob of a patch I sent that just checks to see if the RE starts with (?i) and calls regcomp() with the appropriate flag if so? Case-insensitive BREs and EREs are better than nothing. and it's a smaller and less invasive patch if that's your concern..
The main problem with your two proposals is that they either add a large dependency or are not backwards compatible.
I think there are ways to implement case-insensitive REs without these two inconveniences. Maybe a toggle command 'I'. Adding an 'I' or 'i' flag to the commands already accepting suffixes seems complicated (or impossible for 'g').
Just now I'm busy, but I'll take a look at these two ideas as soon as I find the time. Ideas are welcome.
Best regards, Antonio.