Regular Expression for date and time(DD/MM/YYYY hh:mm:ss) in QML

后端 未结 2 1492
南旧
南旧 2020-12-02 02:34

In QML2 I didn\'t find any Calender control and I have implemented a control which takes date and time as input and I am using the regular expression for the va

2条回答
  •  不思量自难忘°
    2020-12-02 03:33

    Your sequence to match the year is:

    ([19\s[2-9\s][0-9\s])\d\d
    

    Which looks malformed, as the brackets do not match.

    Also, the presence of the two digits (using \d) means that the expression will not match white space.

提交回复
热议问题