• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
OFRegularExpression Quantifier
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: String comparison newbie question
  • Next by Date: Re: Non-square (triangular) views
  • Previous by thread: Re: String comparison newbie question
  • Next by thread: Determining system version revisited for Tiger
  • Index(es):
    • Date
    • Thread