I believe the technical aspects of the question are adequately addressed above--I'd go for the capital letters character class, personally.

That said, you're going to have trouble with this, one way or another--bell hooks doesn't play in the National League, but J.T. Snow does, as do Bobby Jones and Bobby Jones, not to mention two each of C. Jones and T. Jones (okay, one of those plays in the AL...). Martínez will give you similar issues, and Rodríguez is a mild pain as well (as is Smith, while we're at it).

Sure you can't deal with the long names?

Of course, I don't think any of those pairs play for the same team these days, so you're pretty safe if you stick to box scores. But I'd still be nervous doing it.



If God had meant us to fly, he would *never* have give us the railroads.
    --Michael Flanders


In reply to (OT) Re: Splitting Data Out of a Text File by ChemBoy
in thread Splitting Data Out of a Text File by Perl Newby

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.