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.