provide me a regular expression to validate websites (eg: www.regex.co.in )

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nayeemuddin
    New Member
    • Dec 2009
    • 1

    provide me a regular expression to validate websites (eg: www.regex.co.in )

    i want regular expression to validate the website's names. for example if the user enters wwww.regex.co.i n.in.com it should lead to a mesagebox
  • tlhintoq
    Recognized Expert Specialist
    • Mar 2008
    • 3532

    #2
    Have you even made an effort to learn how to do this on your own?

    Originally posted by Original Poster
    Can anybody send me code to [...]
    The Bytes volunteers are not here to write your code for you. This is not a free homework service.
    Bytes is very much a "Give me a fish I eat for a day. Teach me to fish I eat for a lifetime" kind of place. Just giving you the code doesn't help you learn near as effectively as good old-fashioned trial and error.

    Do a little reading up and experimenting then if your trials aren't doing what you expect, post the code and relevant messages/errors and we'll see what we can do to point you in the right direction for making it work.

    Try hitting Google with terms of your programming language and primary terms of what you want to do. For example "C# custom events" or "VB datagrid Excel". I've found this to be a very effective tool.

    May I suggest
    • First: Do some research. I heard about thing thing called Google, or books even.
    • Second: Do some experiments yourself. You will learn so much from actually trying it before throwing up your hands in defeat before even starting.
    • Third: Show the volunteers here the code that you created that was the closest to successful along with relevant errors.

    Comment

    Working...