On Mar 8, 2014, at 4:50 AM, rakesh sharma <rakeshsharm...@hotmail.com> wrote:

> Hi all,
> 
> how do you get all words starting with letter 'r' in a string.

Try

  my @rwords = $string =~ /\br\w*?\b/g;

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to