RE: Split and pattern match problem

2001-09-12 Thread Bradshaw, Brian
Thanks for the info I got. I wound up with: @stringT = split(//i, $qText); to do what I needed. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Split and pattern match problem

2001-09-11 Thread Jason Tiller
Hi, Andrea, :) On Wed, 12 Sep 2001, Andrea Holstein wrote: > Jason Tiller wrote: > > # Find the string bounded by "". The '.+?' > > # finds all characters but isn't greedy; ".+" would match all of the > > # characters between the first "". > > # Store this match as $1. > > while( $text =~ /()/

Re: Split and pattern match problem

2001-09-11 Thread Andrea Holstein
Jason Tiller wrote: > ... > #!/usr/bin/perl > > # Store the text you provided in your e-mail as a big string. > $text = < > # Remove new lines, splitting into an array. > @text = split( "\n", $text ); > > # Now weld the string back together, with spaces instead of newlines! > $text = join(

Re: Split and pattern match problem

2001-09-11 Thread Jason Tiller
Hi, Brian, :) I'm by no means a Perl expert, but I was intrigued that you asked a question I *might* actually be able to answer, so here goes: On Tue, 11 Sep 2001, Bradshaw, Brian wrote: > I have a string that I want to substitute words for each > tag. I am pretty sure I want to split the stri