Regular Expressions 101

Community Patterns

Expression for calculator`s memory

1

Regular Expression
PCRE2 (PHP >=7.3)

/
^([a-zA-Z]+) *= *(-*\d+|[a-zA-Z]+)$
/
gm

Description

variable should be only letters = variable almost in the memory or the value including negative

Submitted by Breathe of fate - a month ago