ea">final EmailAddressRegex regex = EmailAddressRegex.defaultPattern();<br>final EmailAddressRegex other = EmailAddressRegex.defaultPattern();<br>final boolean result = regex.equals(other);<br>final String message =<br>        "Regular expressions with the same pattern are equal.";<br>Assertions.assertTrue(result, message);</code></pre><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to cli