How to set property on regexp?

How to set property(such as multiline=true) of regexp object,there are no constractors to do this, thx!
You currently have no notifications.
How to set property(such as multiline=true) of regexp object,there are no constractors to do this, thx!
Licensing Agreement | Terms of Service | Privacy Policy | EULA
© 2025 Daz Productions Inc. All Rights Reserved.
Comments
Can't you just use a new line character in the RegExp? What are you trying to do?
Sorry i'm not familiar with QtScript, but it seemed regexp not working with mutiline source,though I put "/m" at the end of partten,it just not working.
Flags are passed in as a second [optional] argument to the RegExp constructor; or following the trailing slash in literal notation. The only valid characters are g, i and m. Where g = global match, i = ignore case, and m = multiline. When using the constructor, the flags are quoted. When using literal notation, the flags are not quoted.
-Rob
I got it.Thx!