Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ABCD = XYZAHFJKBKFF
- {
- sdfsd
- sd
- fsd
- fsd
- fsd
- fsd
- fsd
- fsd
- (This can be anything and including most common characters)
- (This may Include Curly, Round brackets as well)
- }
- pattern = re.compile(r"ABCD.*}",re.DOTALL)
- fafs = re.findall(pattern, data)
- for letters in re.findall(pattern, data):
- print(letters)
Add Comment
Please, Sign In to add comment