Problem with Regex and space matching

4 posts / 0 new
Last post

Guys,

I'm trying to use the following regex:

(product|logo)\s+design

To match and filter any feeds that contain strings like:

"product design", "logo design"

But it doesn't work. I've tested the regex syntax in multiple online regex tools and it looks fine. Moreover, I've replaced the "\s+" with a simple space character (" ") and then the regex works properly.

(product|logo) design

This leads me to think there is a problem with the "\s" regex class interpretation. Am I right or I'm missing something about the Qt regular expressions?

Hi,

Hi,

I can confirm the issue. It will be investigated.
Thanks for reporting it!

Kind regards,

Sheldon

veskojl
According to my testing \s

According to my tests \s works fine now! Please try!