Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
Created·2022-10-15 01:26
Flavor·JavaScript

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

Description

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

Submitted by chuaschinai