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

Alexander Dyagilev alervdvcw at gmail.com
Thu Nov 25 21:47:19 CET 2021


Hello,

I'm trying to:

var re = new RegExp('someregex', 's');

Getting error: SyntaxError: Invalid flags supplied to RegExp constructor.

Can anything be done for '.' to match _any_ character?

Tested in both Qt 5.12 and Qt 6.2.



More information about the Interest mailing list