^[A-Z]+[a-zA-Z]*$ I think. I am doing this without testing it so check it out. The ^ means first position of a work the next must be between A-Z and then 1 to many recurrences of all letters. This means that Travis matches but D. for a middle initial won't
-----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Helge Thomas Karset Hellerud Sent: Saturday, July 16, 2005 8:59 AM To: [email protected] Subject: [AspNetAnyQuestionIsOk] Match proper names in text with regex Hello, how can I use regex to match all words starting with only capital alphanumeric characters? Like "\w+", but the first character of the word should only be a capital letter. Helge SPONSORED LINKS Programming <http://groups.yahoo.com/gads?t=ms&k=Programming+languages&w1=Programming+la nguages&w2=C+programming+language&w3=Computer+programming+languages&w4=Java+ programming+language&w5=C+++programming+language&w6=History+of+computer+prog ramming+language&c=6&s=198&.sig=hjFSMmldhVc3zrT5SqL9xQ> languages C <http://groups.yahoo.com/gads?t=ms&k=C+programming+language&w1=Programming+l anguages&w2=C+programming+language&w3=Computer+programming+languages&w4=Java +programming+language&w5=C+++programming+language&w6=History+of+computer+pro gramming+language&c=6&s=198&.sig=td85HQ93XfErfw7wfLZ86A> programming language Computer <http://groups.yahoo.com/gads?t=ms&k=Computer+programming+languages&w1=Progr amming+languages&w2=C+programming+language&w3=Computer+programming+languages &w4=Java+programming+language&w5=C+++programming+language&w6=History+of+comp uter+programming+language&c=6&s=198&.sig=BMtgOo7dpsC1xzn1YgpBPg> programming languages Java <http://groups.yahoo.com/gads?t=ms&k=Java+programming+language&w1=Programmin g+languages&w2=C+programming+language&w3=Computer+programming+languages&w4=J ava+programming+language&w5=C+++programming+language&w6=History+of+computer+ programming+language&c=6&s=198&.sig=8IuywkhSLTtpB6_iFiJoCQ> programming language C <http://groups.yahoo.com/gads?t=ms&k=C+++programming+language&w1=Programming +languages&w2=C+programming+language&w3=Computer+programming+languages&w4=Ja va+programming+language&w5=C+++programming+language&w6=History+of+computer+p rogramming+language&c=6&s=198&.sig=jpmDiGf8qD8AqZNqFwDO7w> programming language History <http://groups.yahoo.com/gads?t=ms&k=History+of+computer+programming+languag e&w1=Programming+languages&w2=C+programming+language&w3=Computer+programming +languages&w4=Java+programming+language&w5=C+++programming+language&w6=Histo ry+of+computer+programming+language&c=6&s=198&.sig=9slR1_vZJlvyOINA4iLkow> of computer programming language _____ YAHOO! GROUPS LINKS * Visit your group "AspNetAnyQuestionIsOk <http://groups.yahoo.com/group/AspNetAnyQuestionIsOk> " on the web. * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED] e> * Your use of Yahoo! Groups is subject to the Yahoo! <http://docs.yahoo.com/info/terms/> Terms of Service. _____ [Non-text portions of this message have been removed] Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
