'''
Online Python Interpreter.
Code, Compile, Run and Debug python program online.
Write your code in this editor and press "Run" button to execute it.
'''
import re
pattern = '\[%clk ([^\]]+)'
test_string = 'blah \n blah \n [%clk 1:05:23] blah blah \n'
print(test_string)
print("match", re.search(pattern, test_string, re.MULTILINE).group(1))