meta data for this page
  •  

Robot Framework

Multiline regexp: https://stackoverflow.com/questions/16551786/is-it-possible-to-have-a-variable-span-multiple-lines-in-robot-framework

*** Variables ***
${example_regex} =  SEPARATOR=
...  (?m)Setting IP address to [0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\n
...  Setting MAC address to [0-9a-f]{2}:[0-9a-f]{2}:[0-9a-f]{2}:[0-9a-f]{2}:[0-9a-f]{2}:[0-9a-f]{2}\\n
...  Setting IP forwarding kernel options
 
*** Test Cases ***
Show output
    Log  \n${example_regex}  console=yes