• 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
Re: AGRegex question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AGRegex question


  • Subject: Re: AGRegex question
  • From: Nathan Day <email@hidden>
  • Date: Fri, 10 Feb 2006 19:01:26 +1100

Yes, the /'s in pearl are the equivalent of double quote but to define a regular expression instead of a string, the / is not part of the regular expression itself.

On 10/02/2006, at 1:51 PM, Koen van der Drift wrote:


On Feb 9, 2006, at 9:20 PM, Koen van der Drift wrote:

AGRegex *regex = [AGRegex regexWithPattern: @"/^\\s*foo\\s*$/"];


To answer my own question, I tried it without the forward slashes, and it seems to work:

[AGRegex regexWithPattern: @"^\\s*foo\\s*$"];


Anyone can confirm this is the correct solution?

thanks,

- Koen.
_______________________________________________
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

_______________________________________________ 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
  • Follow-Ups:
    • Re: AGRegex question
      • From: Koen van der Drift <email@hidden>
References: 
 >AGRegex question (From: Koen van der Drift <email@hidden>)
 >Re: AGRegex question (From: Koen van der Drift <email@hidden>)

  • Prev by Date: Re: .pch not working in XCode 2.2?
  • Next by Date: Re: Objective-C++, class scope constants, name conflicts
  • Previous by thread: Re: AGRegex question
  • Next by thread: Re: AGRegex question
  • Index(es):
    • Date
    • Thread