excerpt() and highlight() now accept regular expressions.

The rationale behind this change is as follows: suppose you have a long text and you want to highlight an exact match as a whole word only. First, you need to have a way of extracting a piece of text that contains the whole word (`excerpt`) and then a way to `highlight` the same.