How to set property on regexp?
578276864_563542692c
Posts: 31
How to set property(such as multiline=true) of regexp object,there are no constractors to do this, thx!
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!