dev-shell-essentials
dev-shell-essentials copied to clipboard
Using Regexp
Hi,
Excellent function (highlight) !
For my purpose, I've added flag '-r' to sed in the Highlight function in order to match regexp text to highlight. Maybe it can be best to add some switches for some basic match capabilities :
- case insensitive match
- regexp
- only first (or Nth) match
Regards. Thomas
Hello Thomas,
Unfortunately '-r' isn't available on OSx. So maybe it's time to implement it in pure python.