[Buffalo-pm] regexp returning count of pattern.
Josh Johnson
joshj at linuxmail.org
Tue Jan 17 09:26:42 PST 2006
I need a way to get the count of a pattern being matched. I can make up an elaborate function to do this but I wondered if perl had something built in I could use. For example, say I have the string:
$string = 'abcdeeeeeefgheeeeijk';
I'd like to replace it with something like:
'abcdE=6fghE=4ijk'
Is there any way I can get a regexp to return the number of times that a parameter was matched?
-Josh J
--
______________________________________________
Check out the latest SMS services @ http://www.linuxmail.org
This allows you to send and receive SMS through your mailbox.
Powered by Outblaze
More information about the Buffalo-pm
mailing list