Fix creation of entry when regex matching.
Correct example in documentation.