Don't ask to ask, just ask | |
PerlMonks |
Regular expression with capture following a matchby ramya2005 (Scribe) |
on Sep 30, 2005 at 23:12 UTC ( [id://496551]=perlquestion: print w/replies, xml ) | Need Help?? |
ramya2005 has asked for the wisdom of the Perl Monks concerning the following question:
Hi PerlMonks: I need to fetch the value next to 'speed' in the following string. 'speed basic-2.0 5.5 basic-11.0'. I used a regular expression "speed \\w+\" which captured only the string "speed". --------------------UPDATE--------------------------------------- I need a regular expression which prints everything after the word speed as one string. -----------------END OF UPDATE------------------------------------ Any suggestions provided by you is much appreciated! 2005-10-02 Retitled by planetscape, as per Monastery guidelines <ramya2005>2005-10-03 Thanks for everyone for posting answers to my Regular expression question.
Back to
Seekers of Perl Wisdom
|
|