dev-shell-essentials icon indicating copy to clipboard operation
dev-shell-essentials copied to clipboard

Using Regexp

Open Touffman78 opened this issue 6 years ago • 1 comments

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

Touffman78 avatar Mar 12 '19 13:03 Touffman78

Hello Thomas,

Unfortunately '-r' isn't available on OSx. So maybe it's time to implement it in pure python.

kepkin avatar Mar 27 '19 15:03 kepkin