Sha256: 23259d256bce85639c81247c4d0135617fae0b8928c0a0aaa4e75f353fa6a957
Contents?: true
Size: 256 Bytes
Versions: 7
Compression:
Stored size: 256 Bytes
Contents
def find_all_matching_indices(input_string, pattern) locations = [] index = input_string.index(pattern) while index != nil locations << index index = input_string.index(pattern, index+1) end return locations end
Version data entries
7 entries across 7 versions & 1 rubygems