Perl Monk, Perl Meditation | |
PerlMonks |
using regex to capture a string and an arrayby blackadder (Hermit) |
on Nov 01, 2009 at 12:33 UTC ( [id://804335]=perlquestion: print w/replies, xml ) | Need Help?? |
blackadder has asked for the wisdom of the Perl Monks concerning the following question:
Bonjour Monks,.. I have strings like these; I am trying to capture the first 3 chars and all the digits up to the first dot from the left. So I put this bit of code together But @RS only contains one element! Instead of what I expected that \d+)/g); will place each digit as an array element in @RS! Enlightments s'il vou plait
Blackadder
Back to
Seekers of Perl Wisdom
|
|