SHARE
TWEET

Untitled

a guest Mar 26th, 2019 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. a = 'abcdefcdcoprtct'
  2. b = 'cfde'
  3.  
  4. from re import search
  5.  
  6. def find_row(a,b):
  7.   pattern = f'[{b}]{ {len(b)} }'
  8.   return search(pattern, a).span()
  9.  
  10. print(find_row(a,b))
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top