0rx

helperCmd.py

0rx
Dec 4th, 2013
386
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.17 KB | None | 0 0
  1. def everything_between(text,begin,end):
  2.  
  3.     idx1=text.find(begin)
  4.  
  5.     idx2=text.find(end,idx1)
  6.  
  7.     return ' '.join(text[idx1+len(begin):idx2].strip().split())
Advertisement
Add Comment
Please, Sign In to add comment