Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

i have the following pattern (part of a pattern which validates urls..)

i know its still not perfect but i have a question about it...

 

this is the pattern : ("((http)|(https))://(w{3}\.)(\w)")

it valids this : http://www.w

should be ok.

but when i enter this:

http://www.ww....

it also ok....hmm...how to fix this that it would be accept the dots..??

its problem in here (\w).

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...