Custom RegEx

  • FrankM
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
10 years 10 months ago #62837 by FrankM
Custom RegEx was created by FrankM
Hi Tuan,

is it possible to add custom regex code for an custom field?

I need something like this:
Code:
validate[required,custom[RegEx-Code]]

Productiv: Joomla 3.5.1 / EB 2.4.3 / PHP 7.0.5
Testsys: Joomla 3.5.1 / EB 2.4.3 / PHP 7.0.5

Sorry, english isn't my native language.

Please Log in or Create an account to join the conversation.

More
10 years 10 months ago - 10 years 10 months ago #62856 by James Riley
Replied by James Riley on topic Custom RegEx
You can write your own RegEx. See posabsolute.github.io/jQuery-Validation-Engine/#customizations

Alternately, you can call a custom function. See posabsolute.github.io/jQuery-Validation-.../funccall-methodname . I've used the latter method, including the javascript I need in a textarea custom field (not really all that secure as it appears right in the source code, but it works).

James Riley .: EventBooking user since 2014 ::: JoomDonation user since 2016 :.
.: grfx & web design / IT / AV @ St. Therese Institute of Faith and Mission, Bruno, SK, Canada :.
Last edit: 10 years 10 months ago by James Riley.
The following user(s) said Thank You: FrankM

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc