On Thu, Mar 4, 2010 at 10:53 PM, Allan Last <[email protected]> wrote:
> I run into problems where the name is close to the beginning of the > sentence: > Having John Smith over for dinner. --- This will look at "Having John" > Getting Jane Smith ready for school. --- This will look at "Getting > Jane" > > Do you know how to do a RegEx where it will ignore the first word > whenever three capitalized words are next to each other? Thanks! You know this is not something you're going to solve with regular expressions, though, right? :-) "San Francisco's Jane Smith, quoted in Broder's Washington Post article, said ..." You need a lot more heuristics than a simple RegEx to reliably find names in a block of text. -- Hassan Schroeder ------------------------ [email protected] twitter: @hassan -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

