code_junkie

Python: Finding partial string matches in a large corpus of strings

Nov 12th, 2011
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.09 KB | None | 0 0
  1. matches = [s for s in allfiles if s.startswith(input)]
  2.  
  3. a--t
  4. /
  5. c r
  6.  
  7. o--w
Add Comment
Please, Sign In to add comment