Hi, I want to allow the username to add either whitespace before or after text and for this not to be included in the validation and not add up to the character count. How can this be achieved with my current regex pattern?
With this regex “Usernames can be 3 to 15 characters long, must start with a letter or number & can include these three special characters . - _ but not consecutively.”
Hi thanks for the reply, I tried the regex it’s not quite right. The special characters can not be consecutive so faye.mcguire is accepted but faye.-mcguire or faye..mcuire is rejected. Then whitespace should only be leading or trialing but not in between any characters.
I need some operation like input’s value trimmed before validation, either with regex or wappler ui.