Allow special replacement patterns.

Closes #2.
1.0.1