OFRegularExpression Quantifier
OFRegularExpression Quantifier
- Subject: OFRegularExpression Quantifier
- From: Jérôme Paschoud <email@hidden>
- Date: Sat, 18 Nov 2006 12:00:18 +0100
Hi,
I'm using the OmniFrameworks' OFRegularExpression to play a bit with
regular expression. What I want to acheive is fairly simple: check if
a string is exclusively composed of 4 capital letters. The correct
syntax for that is: ^[A-Z]{4}$ . Unfortunately I'm absolutely unable
to achieve the desired result wih this syntax, I'm must use a stupid
walkaround like: ^[A-Z][A-Z][A-Z][A-Z]$ to get the correct result.
I search a bit the code of the OFRegularExpression class but it seems
that the parser is not able to understand the {} quantifier's syntax.
Does anyone know the correct syntax?
Any help would be welcome.
CU Jerome
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden