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