IUrlController AddPage SampleUrlFunction Example?

Has anyone created a custom page that supports wildcards?

Here is what I am attempting: controller.AddPage("lms", "*/lms/{applicationid*}", null, null, "lms", pageOptions);

However its not working, I was looking at the documetnation and saw theres a SampleUrlFunction, is this what I am missing? How do I use it?