I can not fully understand the regular expressions for Google forms.

You need to make a check on the input in the text field in the form of PC XX + XX, XX where all X are integers.

Is it possible?

  • This is where you choose Advanced Settings -> Data validation -> Regular Expression ? Choose matches and write ПК [0-9]{2}\+[0-9]{2},[0-9]{2} . - Wiktor Stribiżew

3 answers 3

In Advanced Settings -> Data validation -> Regular Expression you need to select matches and enter

 ПК [0-9]{2}\+[0-9]{2},[0-9]{2} 

enter image description here

Check in work:

enter image description here

    Think so:

     ^ПК \d\d\+\d\d,\d\d$ 

      In the form I put "matches" and like this: PC \ d ++ \ d +, \ d {2}. I still understand the number of digits after each component.

      • Your answer does not match the question. I even doubt where to put a minus: a question or answer. - ReinRaus