[Interest] Javascript: regex: no /s flag support?

Ulf Hermann ulf.hermann at qt.io
Fri Nov 26 00:01:05 CET 2021


> On Thursday, November 25, 2021 11:47:19 PM MSK Alexander Dyagilev wrote:
>> I'm trying to:
>>
>> var re = new RegExp('someregex', 's');

This does not produce a QRegularExpression but rather a JavaScript 
regular expression. Unfortunately those are slightly different. See 
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp

best,
Ulf


More information about the Interest mailing list