Regular Expressions 101

Library entries

netBooter Telnet status parser

Vote

0

Regular Expression
javascript

/
\s{2,3}(\d+)\|\s{8,9}(\w+)\|\s{3}(ON\s|OFF)\|(\s+|\s+\w+)\|\s{5}(ON\s|OFF)\n|\s{3}(\d)\s\|\s+(\w+)\s+\|\s+(ON\s|OFF)\|(\s{2}\n|.\w+)|AC current draw\s(\d)\:\s(\d\.\d{2})|Max detected\s(\d\.\d{2})
/
g

Description

Loading markdown...
Submitted by anonymous - 5 years ago