Jump to content

validating data in cocoa , please help

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
1 reply to this topic

#1
rethish

rethish

    Newbie

  • Members
  • Pip
  • 1 posts
I am confused of validating some of the fields such as email_id ,web address in my project.These fields should only accept the standard format How can i do this? I m a biginner in mac programming . I use xcode 3.1 , I B 3.1 and objective-C for programming . Please help me with examples to overcome this problem .


thank you.

#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
You can step through the string, with flags when certain valid/invalid characters are found. If objective-C includes a regular expression library you could also use that.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog