Regular Expressions 101

Community Patterns

Your search did not match anything

Community Library Entry

1

Regular Expression
ECMAScript (JavaScript)

/
^([0-1]+)(?:([+|\-|\/|*])([0-1]+))*$
/
gm

Description

Match binary number (0 | 1), with or not Operand (+ | - | / | *)

Submitted by chuaschinai - 3 years ago