Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Regular Expressions

Regular Expressions
Thread Tools
Dedicated MacNNer
Join Date: Nov 2000
Status: Offline
Reply With Quote
Jan 21, 2003, 08:12 PM
 
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
Reply With Quote
Jan 22, 2003, 04:54 AM
 
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
Reply With Quote
Jan 22, 2003, 01:01 PM
 
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
Reply With Quote
Jan 22, 2003, 03:14 PM
 
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.
Rick Roe
icons.cx | weblog
     
int69h  (op)
Dedicated MacNNer
Join Date: Nov 2000
Status: Offline
Reply With Quote
Jan 22, 2003, 06:13 PM
 
Try 'man 3 regex'.
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.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 02:05 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2