Regular Expressions 101

Community Library Entry

1

Regular Expression
PCRE (PHP <7.3)

/
([a-zA-Z0-9]+)[_-].*
/

Description

Example 4: Zone: myComputerName123_HBA1_Symm1_FA1 Hostname: myComputerName123

Submitted by anonymous - 9 years ago