Regular Expressions 101

Community Patterns

There does not seem to be anything here

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 - 2 years ago