• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: New Validation Option: Not Regex

New Validation Option: Not Regex 12 years 6 months ago #19256

  • leolll
  • leolll's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 6
Could an option be added to fail validation if preg_match returns true?
The administrator has disabled public write access.

Re: New Validation Option: Not Regex 12 years 6 months ago #19262

  • leolll
  • leolll's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 6
Currently the "Regex" validation type returns the following:
return preg_match($pattern, $value);

That's great for finding a pattern,

But makes it quite complex to find the absence of a pattern.

A new "Not Regex" validation type would look like this:
return !preg_match($pattern, $value);
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!