Panel field: tags. validate input? only letters and numbers

since the tags field is extended textfield can i use regex validation without any problems?

myfield:
  label: regextags
  type:tags
  validate:
    match: "/^[a-zA-Z0-9-_]$/"

That should work, yes. But please note that the regex will apply to the whole tags string, not to each tag, so it needs to be something like:

/^[a-zA-Z0-9-_]+(,[a-zA-Z0-9-_]+)*$/
3 Likes

many thanks @lukasbestle