Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
Python

r"
<ChA([0-9])\*ChB([0-9])>\*<(.*?)>\*<(.*?)>\*<(.*?)>\*<(.*?)>\*<(.*?)>\n
"
g

Description

Get the 7 values coming from the device (telnet port 23) after sending the get info (b'I\r') command.

Submitted by FT - 9 years ago