(?m)applies the following effective flags to the remainder of the pattern: gm m modifier: multiline. Causes ^ and $ to match the start and end of each line, not only the start and end of the string
^start of line
NAME="the literal text NAME=" (case sensitive) Group name(?P<name>(?P<disk>[a-z]+)(?P<partition>\d*)) Group disk(?P<disk>[a-z]+) +matches at least one character from the set below:
a-zone character from a (9710) to z (12210) (case sensitive)
Group partition(?P<partition>\d*) \d*a digit, repeated any number of times
"the literal " (3410 / 428 / 2216)
\sany whitespace character
FSTYPE="the literal text FSTYPE=" (case sensitive) Group fstype(?P<fstype>\w*) \w*any word character, repeated any number of times
"the literal " (3410 / 428 / 2216)
\sany whitespace character
MOUNTPOINT="the literal text MOUNTPOINT=" (case sensitive) Group mountpoint(?P<mountpoint>[\w\[\]/]*) Character Class[\w\[\]/]* *matches any number of characters from the set below:
\wany word character
\[the literal [ (9110 / 1338 / 5B16)
\]the literal ] (9310 / 1358 / 5D16)
/the literal / (4710 / 578 / 2F16)
"the literal " (3410 / 428 / 2216)
\sany whitespace character
SIZE="the literal text SIZE=" (case sensitive) \d*a digit, repeated any number of times
"the literal " (3410 / 428 / 2216)
\sany whitespace character
TYPE="the literal text TYPE=" (case sensitive) \w+any word character, repeated at least once
"the literal " (3410 / 428 / 2216)
$end of line
g modifier: global. Finds all matches instead of stopping after the first
m modifier: multiline. Causes ^ and $ to match the start and end of each line, not only the start and end of the string