Search found 2 matches

by xanuex
Thu Oct 01, 2015 7:32 am
Forum: Regex
Topic: Regex min/max length combined with other expressions
Replies: 2
Views: 17199

Re: Regex min/max length combined with other expressions

I've had it working with one part indeed but it is a regex for first names which can only maintain a dash and need to start with a capital like Susy-Lue.

The expression provided seems to work perfectly, thanks!!
by xanuex
Thu Oct 01, 2015 2:17 am
Forum: Regex
Topic: Regex min/max length combined with other expressions
Replies: 2
Views: 17199

Regex min/max length combined with other expressions

I'm working on a Regex which has the following limitations; 1. No punctuations but a dash 2. No numbers only characters 3. First letter should be uppercase 4. Minimal 3 characters 5. Maximal 12 characters Except for nr. 4/5 this has the required result. ^[A-Z][a-z]+(-[A-Z][a-z]+)?$ For the last part...