Re: NSURL and NSRegularExpression
Re: NSURL and NSRegularExpression
- Subject: Re: NSURL and NSRegularExpression
- From: Per Bull Holmen <email@hidden>
- Date: Sun, 04 Mar 2012 02:42:04 +0100
Den 02:06 4. mars 2012 skrev R <email@hidden> følgende:
> Thanks Conrad, much cleaner indeed. But, this does not solve my
> invalid internet URL issues.... still accepts pretty much any URL.
Just a little suggestion: How about not trying to be perfect? My mail
client (Google mail) also accepts your Bad URL example. If, at some
point a user should post something that looks awfully much like an
URL, but actually it was his favourite food recipe... I'm sure he will
be understanding. How about just work with your regular expressions
and try to narrow down the patterns it will accept?
Per
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden