# Regex to find URL mismatch

**URL:** <https://forum.xbench.net/t/regex-to-find-url-mismatch/1036>\
**Category:** Technical Support\
**Created:** [June 30, 2023, 4:38pm UTC](https://forum.xbench.net/t/regex-to-find-url-mismatch/1036 "2023-06-30T16:38:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![SEA\_Language](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.xbench.net/sea_language/32/452_2.png) [@SEA\_Language](https://forum.xbench.net/u/SEA_Language)\
**Post date:** [June 30, 2023, 4:38pm UTC](https://forum.xbench.net/t/regex-to-find-url-mismatch/1036/1 "2023-06-30T16:38:59Z")

</div>

Please help to provide a regex to find out the URL mismatch. For example:  
Source contains: [www.westinghousenuclear.com](http://www.westinghousenuclear.com)  
Target contains: [www.michters.com](http://www.michters.com)

This is just an example, but there could be a different and more complex and long URL.

---

<div class="post-metadata">

**Author:** ![Jussi](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.xbench.net/jussi/32/418_2.png) [@Jussi](https://forum.xbench.net/u/Jussi)\
**Post date:** [August 9, 2023, 5:02am UTC](https://forum.xbench.net/t/regex-to-find-url-mismatch/1036/3 "2023-08-09T05:02:52Z")

</div>

This is a bit late reply, but since no one has not answered this quite important questions, here we go:  
PowerSearch: On  
RegularExpression (both source and target)  
Case Sensitive: (not important in URLs)

Source:  
“(http://.\*)=1([:space:]|[:punct:])”  
Target:  
-@1

Example:

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/xbench/original/1X/7970837805b3641de41270f4c4ae3ea9b89429cb.png)

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/xbench/original/1X/6a8f7a21d889dacb69b0446ac9902438962f4028.png)
