> Tanton: > > I am sure we could do it in one step as this: > $str =~ s/(\d\d\s*)$/$1/; > > Right?
Sorta, that'll take the end of the string according to the match, and REPLACE IT with the end of the string - handy huh. So it matches: '34 ' from: 'JunkJunkJunk34 ' and adds it to the end of: 'JunkJunkJunk' giving: 'JunkJunkJunk34 ' Hmnm... not working, is it? I suspect he is looking for the two last digits anyway, not the whitespace too. Try my way as per other post :) Otherwise fix as: $str =~ s/^.*(\d\d\s*)$/$1/; which isn't as neat. IMO Jonathan Paton __________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]