[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Grep on dictionary words



> will get the ones that start with capital alphas. if you want initial
> caps *only* then:
>
> grep "^[A-Z][a-z]*$"
>
> would match those.
>

Thanks. I meant that caps could only be at the beginning of a word,
not in the middle. Expanding your example, I figured that would be:
grep "^[A-Z]?[a-z]*$"  // note the question mark

However my PCRE skills are weak and not working.

-- 
Dotan Cohen

http://what-is-what.com
http://gibberish.co.il


Reply to: