Glen Holcomb
8/14/2008 6:26:00 PM
[Note: parts of this message were removed to make it a legal post.]
On Thu, Aug 14, 2008 at 11:01 AM, Glen Holcomb <damnbigman@gmail.com> wrote:
> On Thu, Aug 14, 2008 at 10:40 AM, Glen Holcomb <damnbigman@gmail.com>
> wrote:
>
> > I have a script with two lines:
> >
> > puts "toads suck".gsub(/(\s)/, "\\#{$1}")
> >
> > puts " a ".gsub(/(\s), "\\#{$1}")
> >
> >
> > I get broken output for the first:
> >
> > toads\suck
> >
> > \ a> >
> > Can anyone explain why this is happening. I'm convinced it shouldn't
> ever
> > happen.
> >
> > --
> > "Hey brother Christian with your high and mighty errand, Your actions
> speak
> > so loud, I can't hear a word you're saying."
> >
> > -Greg Graffin (Bad Religion)
> >
>
> Oops. Typo, I should probably copy and paste next time. The second gsub
> is
> actually:
>
> puts " a ".gsub(/(\s)/, "\\#{$1}")
>
> --
> "Hey brother Christian with your high and mighty errand, Your actions speak
> so loud, I can't hear a word you're saying."
>
> -Greg Graffin (Bad Religion)
>
Thanks guys, now I know why.
--
"Hey brother Christian with your high and mighty errand, Your actions speak
so loud, I can't hear a word you're saying."
-Greg Graffin (Bad Religion)