On Feb 26, James Edward Gray II said:

>On Feb 26, 2004, at 3:20 PM, Jeff 'japhy' Pinyan wrote:
>
>>   s/(?:(?<!,)|(?<!R\.))\s/\n/g;
>
>???  I don't think that's gonna work.  Let me check...  No, doesn't
>seem to.  There is always NOT going to be a proceeding comma OR NOT
>going to be a proceeding R., so it changes all spaces.  Luckily, the
>fix is even easier:
>
>s/(?<!,)(?<!R\.)\s/\n/g;
>
>> I think you might just want to do
>>
>>   s/(,|R\.)\s/$1\n/g;

Oh geez.  My brain broke today.  Sorry for the two wrong answers.

-- 
Jeff "japhy" Pinyan      [EMAIL PROTECTED]      http://www.pobox.com/~japhy/
RPI Acacia brother #734   http://www.perlmonks.org/   http://www.cpan.org/
CPAN ID: PINYAN    [Need a programmer?  If you like my work, let me know.]
<stu> what does y/// stand for?  <tenderpuss> why, yansliterate of course.


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to