Since 4/14/2012 3:52:16 AM, dannychallis has written 1 articles and participated in 0 conversations. dannychallis signature: dannychallis
Count substrings in string, scan too slow17481 (6/24/2010 3:04:41 PM) comp.lang.ruby Hello everyone,
I need to count the number of times a substring occurs in a string.
I am currently doing this using the scan method, but it is simply too
slow. I feel there should be a faster way to do t... Danny