What regexp email validation in custom field text? 3 months 8 hours ago #1

  • Camille Gobert
  • Localtime: 22:09
  • Europe/Bucharest
  • Posts: 28
Hello
We need to validate a custom text field using Regexp mail validation
On the live website RFC2822 validation:
regexr.com/2rhq7
/[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?
we tested, the Regexp is ok.
We test this little one
/\b[\w\.-]+@[\w\.-]+\.\w{2,4}\b/gi
in
regexr.com/2ri2c
ok

But when we put the regexp in the backend lovefactory field:

option=com_lovefactory&view=field&layout=edit&id=59
General settings/parameters/Custom regexp pattern

What Regex to put in this custom text field please?
see picture attachement

Regards
Last Edit: 3 months 8 hours ago by Camille Gobert.
The administrator has disabled public write access.

What regexp email validation in custom field text? 3 months 6 hours ago #2

  • Alexandru
  • Alexandru's Avatar
  • Senior Developer
  • Bucharest
  • Localtime: 22:09
  • Europe/Bucharest
  • Posts: 4848

LOCKED VIEW - ANSWERS ARE NOT VISIBLE

This is a private forum, open ONLY to licensed customers!

You can purchase a license and the correspondent forum board will be unlocked.

In case of an already existing valid license, just login with your account and you will have access to the complete board.

thePHPfactory Customer Support
The administrator has disabled public write access.

What regexp email validation in custom field text? 2 months 3 weeks ago #3

  • Camille Gobert
  • Localtime: 22:09
  • Europe/Bucharest
  • Posts: 28

LOCKED VIEW - ANSWERS ARE NOT VISIBLE

This is a private forum, open ONLY to licensed customers!

You can purchase a license and the correspondent forum board will be unlocked.

In case of an already existing valid license, just login with your account and you will have access to the complete board.

The administrator has disabled public write access.