1

I need to break a long regular expression in Qt QML source file, for example:

TextInput {
  ...
  validator: RegExpValidator {
    regExp: /Here goes a very long regular expression. I want to break it to multiple lines/
  }
}

How can I accomplish this?

Danil
  • 111
  • 1
  • 8
  • 1
    Possible duplicate of [How to split a long regular expression into multiple lines in JavaScript?](https://stackoverflow.com/questions/12317049/how-to-split-a-long-regular-expression-into-multiple-lines-in-javascript) – Jan Win Sep 18 '18 at 13:14

0 Answers0