Skip to content
Advertisement

How to check 2 string format

I have a string “[ERROR]: test_case_blebleble – FAILURE – 1 hr 47 min” get from console log jenkins

In my console log, I have a lot of message like this. so I want to check if have any string like this format FAILURE – 1 hr 47 min then go to get this message. So, in python how we can get it please help me = thanks

Advertisement

Answer

You could use in below way:

JavaScript

OR

JavaScript

EDIT

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement