Next Hold Space 11

ed

  • ed was truly groundbreaking

  • It was the first application of regular expressions

    • (Thompson had invented the matching algorithm in 1968)

  • You could tell ed something like this:

      s/\([pP]otato\)e\([^s"]\)/\1\2/
  • It would then find "eat a potatoe."

    • and correct the spelling


Next Next