which group dismatch in holl Pattern

loyal

Centurion
Joined
Jul 29, 2003
Messages
102
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

Code:
"(\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.
 
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?
 
Back
Top