Input_string and regex pattern, what’s supposed to happen?

As I was writing this, the “your topic is similar to…” nag screen showed someone else had the same problem. Turns out it was me! But the problem still remains.

  1. From the Helpers screen, I click “add helper”, then click “Text”
  2. I name the field youbigdummy I miss Redd Foxx, God rest his smutty soul
  3. In the regex pattern field I enter [a-fA-F0-9]* and then click Create
  4. From the helpers screen again, I filter on “dummy”, and see my new string and click on it. I click the hamburger icon at the top right and see the value is (empty value).
  5. I click the field and can enter anything, specifically things that violate the regex. Such as ?!%!!,.*)
  6. Like the previous step, I can enter that value into a lovelace form, like:

type: entities
entities:
  - entity: input_text.youbigdummy
show_header_toggle: false

What needs to be done to enforce the regex pattern?

Seems to be broken then. Open an issue.

This seems to be the same problem I’ve just encountered. After some search around decided to just come up with a workaround using an automation:

The issue is closed now, but it still doesn’t work.