cforms II User Forum

Registration is currently disabled.


Login form protected by Login LockDown.

Lost password?
Advanced Search

— Forum Scope —


— Match —


— Forum Options —


Wildcard usage:
*  matches any number of characters    %  matches exactly one character

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS
There ist a list for RegExp
January 21, 2008
8:37 pm

Please replace the ??? with your data!

  • Your URL: 
  • The browser used: Mozilla Firefox 5.0
  • cforms version: 7.2
  • Your Wordpress version: 2.3.1

[desc]: Salut!
I have problems with cformsII. I declaire all fields but i have problems with the regular expressions. I have a birthday-field witch i want to requiere and i would like to check this field for un correct date-format. (dd.MM.yyyy). I define the field as 'textfield' because the 'date entry/Dialog is not practical for the birthday-date. And also i would like to constrain the input only for numbers.

Witch regular expression can i use. There are one list or another reference?

Merci bien for your help.


I use WP 2.3.1 and cformsII v. 7.2


January 21, 2008
9:29 pm
Munich, Germany
Forum Posts: 6400
Member Since:
March 6, 2005

I'm curious, a birthday is a regular day, why wouldn't the datepicker dialog be a good solution?

The help page lists a few resources for regexp, I'm sure there are plenty for proper date validation. Have you checked those links already?

January 21, 2008
10:56 pm

the date-picker starts today (01/2008) and the birthday is for ex. 01/04/1965.And to achieve the 01/04/1965 you must past evrey month between today and this date. This takes very long. But it is working well!!

Thank you, now i have found the resources for Regexp and i also found my errors. I have take some whitespaces between '#' ,'|' and'^'. Without this whitespaces the form is running.


January 21, 2008
11:19 pm
Munich, Germany
Forum Posts: 6400
Member Since:
March 6, 2005

I understand, however you could consider a slight change in cforms.php:

look for this line (near the bottom):


and add this line right underneath:


This will add a convenient Year selector, perhaps this will do?


PS: the single quotes above need to be real single quotes, copy&paste may not work! 

Forum Timezone: Europe/Berlin

Most Users Ever Online: 959

Currently Online:
24 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

tracedef: 43

mores: 21

Gyrus: 20

frozenwaste: 18

asuffredini: 15

photoworks: 14

Member Stats:

Guest Posters: 3757

Members: 1463

Moderators: 3

Admins: 2

Forum Stats:

Groups: 1

Forums: 4

Topics: 5355

Posts: 18732

Newest Members: juredujmovic, dreamkeeper, rajattyagi, wrokaa, lukass

Moderators: Paul (421), cnymike (8), sonika (95)

Administrators: Oliver (6400), Nicky (3)