Regular Expressions 101

Library entries

Mathematical Expressions

Vote

-2

Regular Expression
pcre

/
# https://regex101.com/r/fP1oQ6/2 (?(DEFINE)# (?<W>\s*) (?<V>\d+(?:\.\d+)?(?&W)) (?<S>[-+]?) (?<O>(?&W)[-+*\/](?&W)) (?<E>(?&S)(?:(?&V)|\((?&W)(?&E)(?&W)\))(?:(?&O)(?&E))?)# )# ((?&E))
/
xgJ

Description

Loading markdown...
Submitted by Jeremy Friesen - 6 years ago