Regular Expressions 101

Enterprise

Community Library

Community Library Entry

-2

Regular ExpressionOpen Workspace

/
# 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
Created·2015-07-21 21:28
Type·Match
Flavor·PCRE (Legacy)

ValidatesMathematical Expressions. Ignores whitespace. Includes parenthesis matching.

Submitted by Jeremy Friesen
Open Workspace