Skip to content

Instantly share code, notes, and snippets.

@lc0
Created March 13, 2014 10:12
Show Gist options
  • Save lc0/9525617 to your computer and use it in GitHub Desktop.
Save lc0/9525617 to your computer and use it in GitHub Desktop.
function search_all(fullst, substr)
c = 0
a = search(fullst, substr)
while size(a) > (0,)
c += 1
a = search(fullst, substr, a[1] + 1)
end
return c
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment