Board Thread:Support Requests - Getting Technical/@comment-27987867-20141209210805/@comment-1277243-20141210212137

Maybe try something like

What the last part does is concatenate the literal strings "^" and "($|/)" with the user_name variable and then interpret that as a a regex that is compared to the name of the page. There's probably a slightly less stupid way to do it, but I just tested it and it does work.

If you're not familiar with regex, the "^" means the start of the line, so the page name must start with the user name. The "($|/)" makes sure that the page name either ends at the end of the user name ($) or starts with the username and is immediately followed by a "/", meaning a subpage. I assume you have other filters / blacklists to prevent bad words being created as page names, so that isn't covered.