syntax:ccmd:conditional_expression

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
syntax:ccmd:conditional_expression [2022/08/09 03:30]
fgrose [Regular Expression Matching] special BASH_REMATCH array variable
syntax:ccmd:conditional_expression [2022/08/09 03:42] (current)
fgrose [Regular Expression Matching]
Line 94: Line 94:
 The interpretation of quoted regular expression special characters can be influenced by setting the ''​compat31''​ and ''​compat32''​ shell options (''​compat*''​ in general). See [[internals:​shell_options]]. The interpretation of quoted regular expression special characters can be influenced by setting the ''​compat31''​ and ''​compat32''​ shell options (''​compat*''​ in general). See [[internals:​shell_options]].
 ===The special BASH_REMATCH array variable=== ===The special BASH_REMATCH array variable===
-An array variable whose members are assigned by the =~ binary operator to the ''<​nowiki>​[[</​nowiki>'' ​ conditional command.+An array variable whose members are assigned by the ''​=~'' ​binary operator to the ''<​nowiki>​[[</​nowiki>'' ​ conditional command.
  
 The element with index 0 is the portion of the string matching the entire regular expression. The element with index n is the portion of the string matching the nth parenthesized subexpression. The element with index 0 is the portion of the string matching the entire regular expression. The element with index n is the portion of the string matching the nth parenthesized subexpression.
  • syntax/ccmd/conditional_expression.txt
  • Last modified: 2022/08/09 03:42
  • by fgrose