10 years ago
Topic
Hi ,
could somebody make an example of syntax, how to fill input field so plugin'll start work
I tried to make REGEX for date DD-MM-YYYY
^(0[1-9]|1[0-9]|2[0-8]|29((?=-([0][13-9]|1[0-2])|(?=-(0[1-9]|1[0-2])-([0-9]{2}(0[48]|[13579][26]|[2468][048])|([02468][048]|[13579][26])00))))|30(?=-(0[13-9]|1[0-2]))|31(?=-(0[13578]|1[02])))-(0[1-9]|1[0-2])-[0-9]{4}$
Get a VIP membership
4229 Posts
Kadministrator
10 years ago
0
Level 1
Hi,

seems there is an error in the plugin, regex is missing opening and closing paranthesis in the output code, please open plugins/cck_field_validation/regex/regex.php and replace two instances of

$validation->regex

with

'"' . $validation->regex . '"'
10 years ago
1
Level 1
regegxp doesn't work when computation rules set to concatenate
10 years ago
0
Level 2
also doesn't accept *$/ui
Get a VIP membership