Re: AGRegex question
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