syntax:pe

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
syntax:pe [2021/12/10 08:11]
ajrou [From the end]
syntax:pe [2021/12/10 08:12]
ajrou [From the beginning]
Line 238: Line 238:
 The operator "''#''"​ will try to remove the shortest text matching the pattern, while "''##''"​ tries to do it with the longest text matching. Look at the following examples to get the idea (matched text <​del>​marked striked</​del>,​ remember it will be removed!): The operator "''#''"​ will try to remove the shortest text matching the pattern, while "''##''"​ tries to do it with the longest text matching. Look at the following examples to get the idea (matched text <​del>​marked striked</​del>,​ remember it will be removed!):
 ^Syntax^Result^ ^Syntax^Result^
-|''​${MYSTRING#​*in}''​|<​del>​Be liberal in</​del>​ what you accept, and Be conservative in what you send| +|''​${MYSTRING#​*in}''​|<​del>​Be liberal in</​del>​ what you accept, and conservative in what you send| 
-|''​${MYSTRING##​*in}''​|<​del>​Be liberal in what you accept, and Be conservative in</​del>​ what you send|+|''​${MYSTRING##​*in}''​|<​del>​Be liberal in what you accept, and conservative in</​del>​ what you send|
  
 ==== From the end ==== ==== From the end ====
  • syntax/pe.txt
  • Last modified: 2021/12/10 08:12
  • by ajrou