in reply to Re^2: Help composing Regex for matching only Titlecase words
in thread Help composing Regex for matching only Titlecase words

The OP does not include USA or UN as example text. Mine also gives results that are likely undesirable for character sequences that contain numbers or punctuation. Yours is likely no better on that front, though you did provide a disclaimer. Development of any regular expression depends strongly on what you are going to feed it - I think mine has the advantage of outputting more junk that yours would, making its weaknesses more obvious once the OP started putting it into practice.
  • Comment on Re^3: Help composing Regex for matching only Titlecase words

Replies are listed 'Best First'.
Re^4: Help composing Regex for matching only Titlecase words
by JavaFan (Canon) on Mar 04, 2011 at 08:30 UTC
    The OP does not include USA or UN as example text.
    Why do you think the OP had $data =~ s/[A-Z]{2,100}//; in the code he tried?