diff --git a/RegEx/Unix/Mount.regex.txt b/RegEx/Unix/Mount.regex.txt index fc7e3b8..4fd1631 100644 --- a/RegEx/Unix/Mount.regex.txt +++ b/RegEx/Unix/Mount.regex.txt @@ -1,17 +1,19 @@ # Matches a Unix Mount -(?m)^(?\S+) # Which is: A line start, followed by the device, -\s+ # followed by space, -(?:on\s)? # and possibly, the word 'on', -(?\S+) # followed by the MountPoint, -\s+ # followed by space, -(?:type\s)? # and possibly, the word 'type', -(?\S+) # followed by the FileSystem, -\s+ # followed by space. -(?:\()? # Then, optionally, an open parenthesis. -(? # Each mount option -(?:[\s\,]? # will be separated by an optional comma -(?>((?\d) # If the mount option started with a digit, it is the DumpFrequency -\s(?\d) # and it will be followed by the PassNumber -|(?[^\s\,\)]+) # Otherwise, the mount option is anything until the next comma or ) -))\)?){1,})(?:.*$) # Then match until the end of the line. +(?m)^(?\S+) # Which is: A line start, followed by the device, +\s+ # followed by space, +(?:on\s)? # and possibly, the word 'on', +(?\S+) # followed by the MountPoint, +\s+ # followed by space, +(?:type\s)? # and possibly, the word 'type', +(?\S+) # followed by the FileSystem, +\s+ # followed by space. +(?:\()? # Then, optionally, an open parenthesis. +(? # Each mount option +(?:[\s\,]? # will be separated by an optional comma +(?> + (?\d) # If the mount option started with a digit, it is the DumpFrequency +\s(?\d) # and it will be followed by the PassNumber + | + (?[^\s\,\)]+) # Otherwise, the mount option is anything until the next comma or ) +)\)?){1,})(?:.*$) # Then match until the end of the line.