How to improve the Xpath using the regular expression
<p>I am using <code>SeleniumWebdriver</code> to identify the elements and in one of the instance, I have defined one of the xPath as mentione below.</p>

<pre><code>//div[contains(@id,'confirm1_container') or contains
(@id,'confirm2_container') or contains(@id,'confirm3_container') or contains
(@id,'confirm4_container')or contains
(@id,'permanentSuppressionPopUp_container')]
</code></pre>

<p>The reason for this, it should pass one of them and identify the element.</p>

<p>The question here, Is there a easy way or any suggestion to improve this xpath instead of having multiple OR operators.If you see theid's only change is the "number" in between confirm and _container.</p>

<p>I did go through old suggestion but they talk about xPath 2.0 functions which cannot be used in my case.</p>