Regular Expressions 101

Library entries

math chain comparisons with optional matched paren

Vote

2

Regular Expression
python

"
(?<![-+\/*(\s])((\s*\()?(?:(?:\s*\$Q\w+\s*|\d+\.?\d*\s*)[-+\/*])+(?:\s*\$Q\w+|\d+\.?\d*)\s*(?(2)\)))(\s*[=!><]+\s*)(\d+\.?\d*)
"
x

Description

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