Welcome, Guest
Username: Password: Remember me

TOPIC: Custom Regular Regular Expression Validation

Custom Regular Regular Expression Validation 30 May 2016 14:07 #14013

  • organicwebs
  • organicwebs's Avatar
  • Offline
  • Premium Member
  • Chris
  • Posts: 112
  • Thank you received: 19
  • Karma: 8
Hi Chef

It would be nice to have a custom expression to allow a certain number of asci characters.

For example - I need an input to allow 4 characters. The regex would be "/w/w/w/w"

(the size fields don't seem to do this).

Cheers
Just call me Chris :)
The administrator has disabled public write access.

Custom Regular Regular Expression Validation 30 May 2016 17:38 #14014

  • Romkabouter
  • Romkabouter's Avatar
  • Offline
  • Elite Member
  • Posts: 289
  • Thank you received: 125
  • Karma: 48
That is a regex for exactly 4 word character, not max 4.
The administrator has disabled public write access.

Custom Regular Regular Expression Validation 07 Jun 2016 14:23 #14029

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3701
  • Thank you received: 972
  • Karma: 140
At the moment, I blocked the custom regular expressions, because they can inject errors, fatals, and security failure. At least for the sandbox.
I tried to escape them as usual for every data inserted, but it is too difficult.

BUT, I am going to create something nice for that part. It is in the roadmap. Can't tell you more.
Stay tuned.
Coding is now a piece of cake
The administrator has disabled public write access.
The following user(s) said Thank You: organicwebs
Time to create page: 0.066 seconds

Get Started