grub: regexp

 
 16.3.62 regexp
 --------------
 
  -- Command: regexp [--set [number:]var] regexp string
      Test if regular expression REGEXP matches STRING.  Supported
      regular expressions are POSIX.2 Extended Regular Expressions.  If
      option '--set' is given, store NUMBERth matched subexpression in
      variable VAR.  Subexpressions are numbered in order of their
      opening parentheses starting from '1'.  NUMBER defaults to '1'.