Re: OFRegularExpression Quantifier
Re: OFRegularExpression Quantifier
- Subject: Re: OFRegularExpression Quantifier
- From: Jérôme Paschoud <email@hidden>
- Date: Tue, 26 Dec 2006 14:20:16 +0100
Hi,
I finally solved the problem by myself, using a very simple wrapper
around regex.h that is very well described under:
http://tearesolutions.com/2006/09/how_to_use_regular_expressions_1.html
CU Jerome
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]$ . 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
--
Paschoud Jerome
http://www.spikesoft.ch
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden