Regex in check not acting as expected

Hello,

I’m checking for a pattern in a ws response like this:

exec(ws(“Synchronization process”).check(wsAwait.within(300000 seconds).until(1).regex(""“completed. (\d*) items”"").saveAs(“catalogCount”)))

and the response is usually something like this:

Synchronization process for catalog NewCatalog completed. 60 items synchronized in 70 seconds.

And this works as expected and I get ‘60’ in “catalogCount”, but, my problem is that when the number of items increases it becomes comma separated like:

Synchronization process for catalog NewCatalog completed. 2,160 items synchronized in 270 seconds.

and the previous regex() doesn’t work. I tried regex("""completed. ([[:print:]]+) items""") and regex("""completed. ([[:graph:]]+) items""") but while they work in an online regex tester they’re not working in my code.

Many thanks.

Solved it with “”“completed. (.*?) items”""

Cheers