Forum Discussion

Michael_B's avatar
Michael_B
Occasional Contributor
2 years ago
Solved

Python code to return a substring using regular expressions?

Hello - I'm attempting to return the 5 digits after "ID:" using regular expressions. I have an expression that works (see attachment), but cannot seem to get testcomplete to return it. When I get thi...
  • rraghvani's avatar
    2 years ago

    Change the last line to,

     

    Log.Message(result[0])

    and you can work from there on.