case sensitive - Regex match all words that start with small letters -
i have match words start little letters. if have main
, main
, regex should match on main
. have [a-z][a-za-z0-9]*
, test on rubular matches main
matches ain
of main
. there solution this?
you need tell start matching @ first letter of word -- word boundary. if alter \b[a-z][a-za-z0-9]*
ought work expect. if want match entire word , stop, can add together word boundary @ end.
regex case-sensitive
No comments:
Post a Comment