aws lex custom slot type with regex fails when using : character

0

I am trying to create a custom slot that can recognise time format 10:00:00 for example, so i created a custom slot "extended slot type" and tried using regex like this [0-9]{1,2}:[0-9]{1,2}:[0-9]{1,2} it failed with "Check the regular expression and try your request again" error so i tried using the unicode character for "colon" like [0-9]{1,2}\u003A[0-9]{1,2}\u003A[0-9]{1,2} even this fails with the same error i tried using other unicode and special characters like - which works absolutely fine.

so, How can i use a colon special character in regex validation ?

已提問 2 年前檢視次數 81 次
沒有答案

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南