# Which Regex flavor does Xbench use?

**URL:** <https://forum.xbench.net/t/which-regex-flavor-does-xbench-use/48>\
**Category:** Technical Support\
**Created:** [February 9, 2016, 10:23pm UTC](https://forum.xbench.net/t/which-regex-flavor-does-xbench-use/48 "2016-02-09T22:23:09Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![XbenchUser](https://avatars.discourse-cdn.com/v4/letter/x/57b2e6/32.png) [@XbenchUser](https://forum.xbench.net/u/XbenchUser)\
**Post date:** [February 9, 2016, 10:23pm UTC](https://forum.xbench.net/t/which-regex-flavor-does-xbench-use/48/1 "2016-02-09T22:23:09Z")

</div>

I am trying regex searches with Xbench, but they do not seem to process sequences like \w or \b.

Which regex flavor is used in Xbench?

---

<div class="post-metadata">

**Author:** ![pcondal](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.xbench.net/pcondal/32/305_2.png) [@pcondal](https://forum.xbench.net/u/pcondal)\
**Post date:** [February 9, 2016, 10:29pm UTC](https://forum.xbench.net/t/which-regex-flavor-does-xbench-use/48/2 "2016-02-09T22:29:35Z")

</div>

Xbench uses POSIX ERE flavor with two “syntactic sugar” exceptions:

- `<` and `>` are word delimiters as syntactic sugar (instead of `[:<:]` and `[:>:]`).
- Classes can be specified directly (for example `[:digit:]` ), instead of enclosed in a set (`[[:digit:]]`).

---

<div class="post-metadata">

**Author:** ![srpicinini](https://avatars.discourse-cdn.com/v4/letter/s/47e85d/32.png) [@srpicinini](https://forum.xbench.net/u/srpicinini)\
**Post date:** [February 12, 2016, 5:52pm UTC](https://forum.xbench.net/t/which-regex-flavor-does-xbench-use/48/3 "2016-02-12T17:52:22Z")

</div>

But can you make the standard \w and \b be accepted and work too, as well as the sugar exceptions? There are lots of regexes out there written with \w and \b. Thanks

---

<div class="post-metadata">

**Author:** ![pcondal](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.xbench.net/pcondal/32/305_2.png) [@pcondal](https://forum.xbench.net/u/pcondal)\
**Post date:** [February 12, 2016, 7:12pm UTC](https://forum.xbench.net/t/which-regex-flavor-does-xbench-use/48/4 "2016-02-12T19:12:40Z")

</div>

One of the reasons why the Xbench 3.0 regex grammar does not include commands common in other regex flavors such as `\b` or `\w` is to try to maintain compatibility with Xbench 2.9, whose development was frozen in 2011.

The goal is that when someone develops a Xbench checklist with Xbench 3.0, that checklist can be also used with Xbench 2.9 because many of our users in Xbench 3.0 share checklists with suppliers or colleagues who still use Xbench 2.9.

Xbench 3.0 has some fixes on our regex engine that Xbench 2.9 does not, so strictly speaking, compatibility between Xbench 3.0 and Xbench 2.9 checklists is not 100%, but it probably still is a 99.99%.

If we added extensions to the regex grammar such as including alternatives (i.e. `\w` and `\b`), the degree of compatibility between 3.0 and 2.9 would be greatly reduced as more and more users started to use them. This would trigger many support calls by Xbench 2.9 users to maintainers of the checklists.

That said, if future additions of new features to checklists in Xbench 3.0 implies such changes in the checklist file format that make no longer possible maintaining compatibility with Xbench 2.9, then we would be a lot more open to revising the regex grammar in Xbench 3.0.

---

<div class="post-metadata">

**Author:** ![srpicinini](https://avatars.discourse-cdn.com/v4/letter/s/47e85d/32.png) [@srpicinini](https://forum.xbench.net/u/srpicinini)\
**Post date:** [March 27, 2016, 8:07pm UTC](https://forum.xbench.net/t/which-regex-flavor-does-xbench-use/48/5 "2016-03-27T20:07:55Z")

</div>

Hi, just to maybe facilitate for people creating regexes, please confirm:  
I can’t use: /b /w /s /d  
Instead I have to use \<\> [:alpha:] [:space:] [:digit:]

I am doing a presentation using Xbench, this will be useful for people there.  
Any other difference that you would highlight?

Thanks

---

<div class="post-metadata">

**Author:** ![srpicinini](https://avatars.discourse-cdn.com/v4/letter/s/47e85d/32.png) [@srpicinini](https://forum.xbench.net/u/srpicinini)\
**Post date:** [March 27, 2016, 8:16pm UTC](https://forum.xbench.net/t/which-regex-flavor-does-xbench-use/48/6 "2016-03-27T20:16:08Z")

</div>

Just one more, please confirm:  
In other systems, when I want to specify non-digits I can used /D - the capitalized D indicates that I don’t want “no-characters”. To do the same in Xbench I need to write this:[^[:digit:]], correct?

I may move from CheckMate to Xbench and I will need to convert my regexes, this will really help.  
Thanks

---

<div class="post-metadata">

**Author:** ![pcondal](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.xbench.net/pcondal/32/305_2.png) [@pcondal](https://forum.xbench.net/u/pcondal)\
**Post date:** [March 27, 2016, 11:10pm UTC](https://forum.xbench.net/t/which-regex-flavor-does-xbench-use/48/7 "2016-03-27T23:10:17Z")

</div>

If by non-digits you mean letters (not symbols), you can use the [:letter:] class. In the online help there is a table with the POSIX classes available.

---

<div class="post-metadata">

**Author:** ![jixich93](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.xbench.net/jixich93/32/427_2.png) [@jixich93](https://forum.xbench.net/u/jixich93)\
**Post date:** [March 21, 2023, 3:30am UTC](https://forum.xbench.net/t/which-regex-flavor-does-xbench-use/48/8 "2023-03-21T03:30:35Z")

</div>

Hello,

Would you mind helping me share the link of the table regarding POSIX classes?  
I didn’t find it in the online help ☹

And is it still suitable today?

---

<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 21, 2023, 8:35am UTC](https://forum.xbench.net/t/which-regex-flavor-does-xbench-use/48/9 "2023-03-21T08:35:41Z")

</div>

[Here](https://docs.xbench.net/user-guide/special-sets/) you will find info about Special Sets.

---

<div class="post-metadata">

**Author:** ![jixich93](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.xbench.net/jixich93/32/427_2.png) [@jixich93](https://forum.xbench.net/u/jixich93)\
**Post date:** [May 4, 2023, 4:03am UTC](https://forum.xbench.net/t/which-regex-flavor-does-xbench-use/48/10 "2023-05-04T04:03:36Z")

</div>

Hello Omartin,

I’m really appreciate for your help!
