2021年1月21日星期四

How can I get a value from the below string using the regex in python

I need to grab a value "1" from below output using Python Regex:

SUCCESS  $<end>  $<SYS.Counter0.Increment>  $counter 0 incremented by 1  $SUCCESS  $<end>  

Here, I need to grab a value "56" from below output using Python Regex:

$SUCCESS  $<end>  $<SYS.Counter0.State>  $value of counter 0: 56  $SUCCESS  $<end>  
https://stackoverflow.com/questions/65839306/how-can-i-get-a-value-from-the-below-string-using-the-regex-in-python January 22, 2021 at 12:29PM

没有评论:

发表评论