Raabe, Wesley wrote:
I am using regular expressions to alter a text file. Where my original
file has three spaces to start a paragraph, I want to replace each
instance of three spaces with a bracketed paragraph number, with a
counter for paragraph numbers, , , etc. The
PERL program that I'm u
On Sat, May 30, 2009 at 23:32, Raabe, Wesley wrote:
>
> I am using regular expressions to alter a text file. Where my original file
> has three spaces to start a paragraph, I want to replace each instance of
> three spaces with a bracketed paragraph number, with a counter for paragraph
> number
I am using regular expressions to alter a text file. Where my original file has
three spaces to start a paragraph, I want to replace each instance of three
spaces with a bracketed paragraph number, with a counter for paragraph numbers,
, , etc. The PERL program that I'm using is modeled on
Farrell, Patrick wrote:
This is roughly what I am trying to do. Surround lower case strings within a
string with tags.
===
$msgText="THIS IS MY test STRING";
$msgText =~ m/ [a-z]+ /; #or $msgText =~ /\s[a-z]+\s/;
if(defined($1)){
That
This is roughly what I am trying to do. Surround lower case strings within a
string with tags.
===
$msgText="THIS IS MY test STRING";
$msgText =~ m/ [a-z]+ /; #or $msgText =~ /\s[a-z]+\s/;
if(defined($1)){
$1=~ s/\s+//g;