# Regular expression not work in Xbench

**URL:** <https://forum.xbench.net/t/regular-expression-not-work-in-xbench/1208>\
**Category:** Technical Support\
**Created:** [September 27, 2024, 6:55am UTC](https://forum.xbench.net/t/regular-expression-not-work-in-xbench/1208 "2024-09-27T06:55:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![HunterYang628](https://avatars.discourse-cdn.com/v4/letter/h/3ab097/32.png) [@HunterYang628](https://forum.xbench.net/u/HunterYang628)\
**Post date:** [September 27, 2024, 6:55am UTC](https://forum.xbench.net/t/regular-expression-not-work-in-xbench/1208/1 "2024-09-27T06:55:54Z")

</div>

I’m a licensed xbench user ([hyang@acclaro.com](mailto:hyang@acclaro.com)). However, a regular expression that works in other tools doesn’t work in xbench. Would you check it for me?

Source: (?i)(\b(not|no)\b)|(n[‘’]t\b)  
Target: (?i)(?m)^((?!(?i)(外|出乎|难|以后再|空|数|号|取消|不|无|非|未|否|没|勿|别|失|只|仅|防止|避免|防|禁止|以外的|直到.+?才|以免|莫|除.+?外|无论|是否|难以|违背|违反|尽管|随时|错误|续|欠|缺|停|止|杜绝|极|必须\*.+才|但|超出|(\b(no|not)\b)|(n[’’]t\b))).)\*\r?$

---

<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:** [September 27, 2024, 1:31pm UTC](https://forum.xbench.net/t/regular-expression-not-work-in-xbench/1208/2 "2024-09-27T13:31:42Z")

</div>

Regex syntax is different from the one in your sample. For more information about xbench regex syntax, look at [Regular Expressions and Microsoft Word Wildcards :: ApSIC Xbench Documentation](https://docs.xbench.net/user-guide/regular-expressions/#regular-expressions-syntax) and [Special Sets :: ApSIC Xbench Documentation](https://docs.xbench.net/user-guide/special-sets/).
