Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE (PHP <7.3)

/
GRUB_CMDLINE_LINUX="(?:\s*?([\w=]+)\s*?)+"
/

Description

Trying to match grub options in capture groups, some of which are known

Submitted by cnf - 10 years ago