title: Validating response text in a Google Form with Regex in Google App Script
body: <p>I would like to validate the response text with Regex, being aware that it can be done manually (<a href="https://www.labnol.org/internet/regular-expressions-forms/28380/" rel="nofollow noreferrer">https://www.labnol.org/internet/regular-expressions-forms/28380/</a>).</p>
  
  <p>However, as we are building the forms with Google App Script, I am trying to use FormApp.createTextValidation() to construct the validation needed. There are many different methods available (<a href="https://developers.google.com/apps-script/reference/spreadsheet/data-validation-builder" rel="nofollow noreferrer">https://developers.google.com/apps-script/reference/spreadsheet/data-validation-builder</a>), but they seems to be all pre-set. As we may have very specific validation formats, we need to write our own regex to validate the response. Is that possible?</p>
  
  <p>Thanks a lot in advance!</p>