That's perfect.  Thanks.  I found that 'sub' works just as well in this case because it's just the first occurrence of the pattern that I want to get rid of.

Cheers!  Paul.


On 16/05/06, Andy Sipe <[EMAIL PROTECTED]> wrote:
Assuming that the first part of the label is always the same, then gsub is
one of many ways:

irb(main):017:0> x = 'Good Morning, Billy Bob Joe'
=> "Good Morning, Billy Bob Joe"
irb(main):018:0> x.gsub(/Good Morning, /, '')
=> "Billy Bob Joe"

-andy

_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to