regular expression to match any string but at least 3 characters

Posted by David on Stack Overflow See other posts from Stack Overflow or by David
Published on 2010-04-07T05:53:49Z Indexed on 2010/04/07 6:03 UTC
Read the original article Hit count: 290

Filed under:
|

sorry am not a regex expert. but my request is simple, i need to match any string that has at least 3 or more characters that are matching

So for instance, we have the string "hello world" and matching it with the following:

"he" => false // only 2 characters
"hel" => true // 3 characters match found

thansk in advance.

© Stack Overflow or respective owner

Related posts about regex

Related posts about pattern