Regular Expressions 101

Community Patterns

Register immediate addressing with number or symbol for displacement

0

Regular Expression
PCRE (PHP <7.3)

/
^r[0-7][hl]?\[((\+|-)?\d+|_*[a-zA-Z][_\w]*)\]$
/
gm

Description

Register bank of r0-r7 with l/h accessibility. Displacement is either a +/- decimal or symbol starting with _ or small/large letter and containing letters, numbers and _.

Submitted by anonymous - 5 years ago