Hello,
i want to know on how to capture sub-string from a given string based on regular expression grouping like in python.
I tried with "Get Lines Containing String" keyword. But, it displays the entire line
Tried with other keywords also. but, not successful:
#${line} Get Lines Containing String ${output} H1
#${line} Get Lines Matching Pattern ${output} H1
Basically, i want to capture the first substring "13fdc377-f509-4df0-bf87-df7285f228b0" if the line matches "H1" which is there in the line ${output}. Please suggest on how to do it in robot framework. This can be achievable in python with regular expression and grouping. Please suggest.
${output} '| 13fdc377-f509-4df0-bf87-df7285f228b0 | - | 8c8798ef-bb3b-4bf6-abad-8bdd63d730d0 | H1 |'
*** Test Cases ***
PrintRegex
${line} Get Lines Containing String ${output} H1
Log To Console ${line}