Removing dots - please help me out

From: Aristotle (qwerty97654_at_hotmail.com)
Date: 03/16/04


Date: 16 Mar 2004 08:07:53 -0800

Could you please help me out with regular expressions. I'm trying to
write a perl script that proccesses some text, and i'm stuck at the
following:

need to remove from the text
1. dots followed by space & words starting with lower case letters
2. dots followed by only by words starting with lower case letters

ie

"pure text here bla bla bla. more text follows" --> changes to
"pure text here bla bla bla more text follows"

and

"pure text here bla bla bla.more text follows" --> changes to
"pure text here bla bla bla more text follows"

Need to remove just the dots, not letters.

No matter how hard i tried, i could not make it work. Tried various
things eg $line =~ s/\. (?=[a-z])/ /g; I'd really appreciate your
help, it's a must do and dont have anyone else to help out.

Thanks in advance.



Relevant Pages

  • Re: December FBOW letters are up
    ... After reading Elly's and Iris's letters, ... Don't they have the friggin' flu vaccine up in Canada? ... Yeah, I know ... that it doesn't always work, bla bla bla, but it seems that these days, ...
    (rec.arts.comics.strips)
  • Re: FLOYD LANDIS FACE SHOULD BE COVERED IN SH1T!
    ... bla bla bla ... I am working on creating wildlife habitat that is off-limits to ... humans ("pure habitat"). ... (I spent the previous 8 years fighting auto dependence and road construction.) ...
    (rec.bicycles.racing)