regex - Block all caps sentences -


i'm trying use regex expression block caps sentences (sentences capital letters) can't succeed @ finding pattern. thinking ^[a-z] doesn't work @ all.

any suggestion?

you can perhaps use make sure there's @ least 1 lowercase character (note that's kind of reverse logic):

^.*[a-z].*$ 

(unless function you're using uses regex against whole pattern default, can drop beginning , end of line anchors)

if want regex more strict (though don't think that's practical here), can perhaps use of sort...

^[a-z.,:;/() -]*[a-z]+[a-z.,:;/() -]*$ 

to allow uppercase letters, , potential punctuations (you can add or remove them character classes need) , spaces.


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -