Syman
(Simon)
1
Hallo Community,
does anybody know if Robotframework Core does support Regex with the non-capturing group syntax.
Example:
(?: # some regex expression )
I used a regex construct but it did not work unless I removed the “?:” above.
Does anybody know how to escape this expression?
Hi,
I can tell you that I have some fields and Regex likes this that works well:
VAR ${period} From dd/mm/yyyy at hh:mm to dd/mm/yyyy at hh:mm
${end} Get Regexp Matches ${period} (?<=to )\\d{2}/\\d{2}/\\d{4} at \\d{2}:\\d{2}
Or this:
VAR ${maildata} Your temporary code is:1a2b
${code} Get Regexp Matches ${maildata} (?<=Your temporary code is:)(\\w+)
And this get me the intended value (end date-time) or code to work with.
Hope this helps.
Regards.
Charlie