Just another Perl shrine | |
PerlMonks |
Extracting the number of %'s in a stringby mnranjeeth (Novice) |
on Dec 13, 2007 at 07:35 UTC ( [id://656765]=perlquestion: print w/replies, xml ) | Need Help?? |
mnranjeeth has asked for the wisdom of the Perl Monks concerning the following question:
I have a string in the following format: "-----%s----%a----%d--%s-%d---" ('-' can be anything).
I need to find out the
Is it possible to do it using a regex or is converting the string into an array and then processing it is the only way out?
Back to
Seekers of Perl Wisdom
|
|