Expand api

Can you provide an example of how to use ``pattern``?