Drupal 8 Webform : Regular expression in conditions to check specific day of the week I am setting another webform on Drupal 8. 
I want to enable some fields based on the day of the week selected. 
I used JS on a site with Drupal 7, it is working fine,  thanks to JSDrupal. 

I would like to implement it on the Drupal 8 site with a regexp. 
I am using the HTML5 date field, not the Jquery datepicker.
My concern is the same than before : 

if the Day selected on field DATE_D( a Date field) is Tuesday OR Thursday then hide SELECT( select field).

Thank you
I doubt that you can achieve this without some JS involved.

You can use JS RegExp.

You could try Form API #states and try to hide the desired select field if some other field's value matches your conditions.

$form['my_select_element'] = [
  '#type' =&gt; 'select',
  '#states' =&gt; [
    // Hide this field when the 'weekday' radio has 'tuesday' or 'thursday' selected.
    'invisible' =&gt; [
      ':input[name="field_weekday[und]"]' =&gt; ['value' =&gt; 'tuesday'],
      'or',
      ':input[name="field_weekday[und]"]' =&gt; ['value' =&gt; 'thursday'],
    ],
  ],
];


(#states with multiple conditions, Source.)