I'm creating a custom Wordpress login form for a BuddyBoss site. The site requires a "nickname" field which has the following requirements: Only "a-z", "0-9", "-", "_" and "." are allowed.

The form is here:  https://www.torah.global/register-account/

My form program, FluentForms, has a validation option to match a regex code.

Can I please ask what would the regex code be for the following (not case sensitive):

"a-z", "0-9", "-", "_" and "."

I've tried [A-Za-z0-9_-.] but that didn't seem to work. When I enter a valid nickname, I get an error saying "Sorry, only "a-z", "0-9", "-", "_" and "." are allowed in Nickname."

I think fluent forms uses PHP but I'm not 100% sure.

See screenshots of fluent form settings.


Budget: $5
Posted On: February 14, 2023 06:20 UTC
Category: Scripting & Automation
Skills:PHP, Regex Writing, WordPress
Country: Australia
click to apply