Ash FrameworkAF
Ash Framework5mo ago
20 replies
Joan Gavelán

Regex validation error

Getting this error when validating:
validate match(:code, "^[A-Za-z0-9]+$/")

**Error**
protocol String.Chars not implemented for type Regex (a struct)

Got value:

    ~r/^[A-Za-z0-9]+$/

Any idea what's wrong?
Was this page helpful?