What is “regex-opt” Package?

Perl-compatible regular expression optimizer
For more details: http://bisqwit.iki.fi/source/regexopt.html

Installation

  • Open Terminal by pressing command+space then type terminal and hit Enter key.
  • Install homebrew first.
    ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null
  • Install regex-opt.
    brew install regex-opt

Now, use regex-opt!