# Regex for broken link

**URL:** <https://forum.xbench.net/t/regex-for-broken-link/748>\
**Category:** Technical Support\
**Created:** [March 2, 2021, 8:48am UTC](https://forum.xbench.net/t/regex-for-broken-link/748 "2021-03-02T08:48:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Susanne](https://avatars.discourse-cdn.com/v4/letter/s/919ad9/32.png) [@Susanne](https://forum.xbench.net/u/Susanne)\
**Post date:** [March 2, 2021, 8:48am UTC](https://forum.xbench.net/t/regex-for-broken-link/748/1 "2021-03-02T08:48:55Z")

</div>

Hello support,

I would like to create a rule that detects if in a segment with text a tag is broken.

In example below, the colon breaks the link in the segment, as the colon is not in the right position in the target.

Source: except 2AR-FE:tag  
Target: excepto 2AR-FEtag:tag

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

Can someone help?

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![omartin](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.xbench.net/omartin/32/82_2.png) [@omartin](https://forum.xbench.net/u/omartin)\
**Post date:** [March 2, 2021, 10:07am UTC](https://forum.xbench.net/t/regex-for-broken-link/748/2 "2021-03-02T10:07:08Z")

</div>

I suppose that these tags are displayed in Xbench as they appear in the screenshot.  
The following search should work if there are three tags in source without any character in between and they have been inserted in target in a different way:

Source: `"(\<[^\>]+\>\<[^\>]+\>\<[^\>]+\>)=1"`  
Target: `-@1`  
Search mode: Regular Expressions  
PowerSearch: On.

---

<div class="post-metadata">

**Author:** ![Susanne](https://avatars.discourse-cdn.com/v4/letter/s/919ad9/32.png) [@Susanne](https://forum.xbench.net/u/Susanne)\
**Post date:** [March 2, 2021, 11:49am UTC](https://forum.xbench.net/t/regex-for-broken-link/748/3 "2021-03-02T11:49:42Z")

</div>

Great! It works. Thanks a lot.
