 |
 |
Regular Expressions
|
 |
|
 |
|
Dedicated MacNNer
Join Date: Nov 2000
Status:
Offline
|
|
Anyone know where I can find something to work with regular expressions and NSStrings? I don't need to apply transformations, just search. I'm surprised Apple still hasn't provided us w/ this.
Thanks in advance.
|
|
|
| |
|
|
|
 |
|
 |
|
Forum Regular
Join Date: May 2001
Location: Mnt View, CA
Status:
Offline
|
|
Originally posted by int69h:
Anyone know where I can find something to work with regular expressions and NSStrings? I don't need to apply transformations, just search. I'm surprised Apple still hasn't provided us w/ this.
Thanks in advance.
I happened to see this the other day. Check the first item on the list.
CocoaDev
I have not checked this out, just remembered it when I saw your post.
Good luck
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Sep 2000
Location: Tempe, AZ
Status:
Offline
|
|
Try 'man 3 regex'. The man page is pretty cryptic, but they're easy to use once you figure out what's going on.
|
Geekspiff - generating spiffdiddlee software since before you began paying attention.
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Feb 2001
Location: Vancouver, WA
Status:
Offline
|
|
The OmniFoundation open-source framework includes an NSString-based regex utility, OFRegularExpression, which is pretty easy to use. You can see examples how to use it in the OmniAppKit framework, where we use it to enable regex-based searching in all our apps.
|
|
|
| |
|
|
|
 |
|
 |
|
Dedicated MacNNer
Join Date: Nov 2000
Status:
Offline
|
|
Doh! I knew recommending people learn things from man pages was going to come back and haunt me.
I was already familiar with the regex functions and had already discounted using them. I guess I should have mentioned that.
Thanks for the advice everyone.
|
|
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |