```text
Rehearsal ------------------------------------------------------
equals               0.020000   0.010000   0.030000 (  0.014973)
regexp               0.010000   0.000000   0.010000 (  0.010342)
precompiled regexp   0.010000   0.000000   0.010000 (  0.010796)
--------------------------------------------- total: 0.050000sec

                         user     system      total        real
equals               0.020000   0.000000   0.020000 (  0.012623)
regexp               0.010000   0.000000   0.010000 (  0.006788)
precompiled regexp   0.000000   0.000000   0.000000 (  0.006676)
```

Looks to me like we could use Regexp no problem...

Code:

```ruby
require 'benchmark'

content = "---\r\n"
regexp  = Regexp.compile("---\r?\n")

Benchmark.bmbm do |x|
  x.report("equals") { 
    10000.times { content.encode('utf-8', universal_newlines: true) == "---\n" }
  }
  x.report("regexp") { 
    10000.times { !!/---\r?\n/.match(content) }
  }
  x.report("precompiled regexp") { 
    10000.times { regexp.match content }
  }
end

```