Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # TODO: move the compile out of the filter and fix target to be a unicode str
- # Contributed by Neil "Polk" Stevens.
- def match_begin(source, target):
- return filter(lambda x: re.compile("^" + re.escape(target), re.IGNORECASE, re.UNICODE).search(x), source)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement