Solved, this is what I was looking for:
<?php elseif (preg_match( '#^any-page-with-this-text-in-slug(/.+)?$#', $wp->request)) : ?>
Solved, this is what I was looking for:
<?php elseif (preg_match( '#^any-page-with-this-text-in-slug(/.+)?$#', $wp->request)) : ?>