Regular Expressions 101

Community Patterns

Extron SMP351 info string

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 - 8 years ago