Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

hi all

 

how can I know which group dismatch in holl Pattern

 

this pattern searches for 3 words or more, that consist of 2 or more letters

 

"(\b([A-Za-z]){2,}\s?){3,}\b"

 

Now in real example , suppose that the user enters " Bill S "

 

I want to dispaly that "Each word must consist of 2 or more letters "

 

I can only do that if I know how I can get the group failure .

 

that for reading.

Gary Says: To be a good programmer, you must be good at debugging
  • 3 weeks later...
  • 4 weeks later...
Posted

Correction words

 

Hi , sorry for that I meant mismatch ( does not match)

and ,, heee hole means whole (*&*) poor english

let me explain something..

I want to display to the user which part of his/her entries was wrong,that's it.

So, is there anyway to get (which group failed ) and return false

Does anyone know that?

Gary Says: To be a good programmer, you must be good at debugging

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...