Regular Expressions 101

Community Patterns

Find current ratings out of a fuse description

0

Regular Expression
PCRE (PHP <7.3)

/
(?<=^Fuse - )[\d.\/m]+A|(?<=\s)\dA
/
gm

Description

Look for "Fuse - " prefix Any digit or... Any fractional marker (for "3/4") or... Any "m" (for milli) or... Followed by a capital "A"? OR is there a space... ...followed by a number with an A suffix?

Submitted by anonymous - 5 years ago