jupiterbjy

example session

Jun 19th, 2020
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. PS C:\Users\jupit> python
  2. Python 3.8.2 (tags/v3.8.2:7b3ab59, Feb 25 2020, 23:03:10) [MSC v.1916 64 bit (AMD64)] on win32
  3. Type "help", "copyright", "credits" or "license" for more information.
  4. >>> import re
  5. >>> line = 'admin| (stmt : 1) | adminT| End Time - 2018-11-06 16:52:15'
  6. >>> re.search(r'(?<=\()[^)]*', line).group(0)
  7. 'stmt : 1'
  8. >>>
Advertisement
Add Comment
Please, Sign In to add comment